| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_MOJO_COMMON_MOJO_VIDEO_FRAME_PROVIDER_H_ |
| 6 #define MEDIA_MOJO_COMMON_MOJO_VIDEO_FRAME_PROVIDER_H_ |
| 7 |
| 8 #include "media/base/video_frame_provider.h" |
| 9 |
| 10 namespace media { |
| 11 |
| 12 class MojoVideoFrameProvider final : public VideoFrameProvider { |
| 13 public: |
| 14 MojoVideoFrameProvider(); |
| 15 ~MojoVideoFrameProvider() override; |
| 16 |
| 17 scoped_refptr<VideoFrame> CreateZeroInitializedFrame( |
| 18 VideoPixelFormat format, |
| 19 const gfx::Size& coded_size, |
| 20 const gfx::Rect& visible_rect, |
| 21 const gfx::Size& natural_size, |
| 22 base::TimeDelta timestamp) override; |
| 23 |
| 24 scoped_refptr<VideoFrame> WrapVideoFrame( |
| 25 const scoped_refptr<VideoFrame>& frame) override; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(MojoVideoFrameProvider); |
| 29 }; |
| 30 |
| 31 } // namespace media |
| 32 |
| 33 #endif // MEDIA_MOJO_COMMON_MOJO_VIDEO_FRAME_PROVIDER_H_ |
| OLD | NEW |