1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17

media / gpu / video_frame_mapper.cc [blame]

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/gpu/video_frame_mapper.h"

#include "media/gpu/chromeos/video_frame_resource.h"

namespace media {
scoped_refptr<VideoFrame> VideoFrameMapper::Map(
    scoped_refptr<const VideoFrame> video_frame,
    int permissions) {
  return MapFrame(VideoFrameResource::CreateConst(std::move(video_frame)),
                  permissions);
}

}  // namespace media