Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: media/mojo/common/mojo_video_frame_provider.h

Issue 2643733002: Allow to use {FFmpeg/Vpx}VideoDecoder from a UtilityProcess (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « media/mojo/common/mojo_shared_buffer_video_frame.cc ('k') | media/mojo/common/mojo_video_frame_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698