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

Unified Diff: media/mojo/common/mojo_shared_buffer_video_frame.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/common/BUILD.gn ('k') | media/mojo/common/mojo_shared_buffer_video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/common/mojo_shared_buffer_video_frame.h
diff --git a/media/mojo/common/mojo_shared_buffer_video_frame.h b/media/mojo/common/mojo_shared_buffer_video_frame.h
index 945f43e51f38ec57e6279a8e8e9538d6e7772fd7..7d2ae52163529a03bc6d7af1c11628ca14208a0a 100644
--- a/media/mojo/common/mojo_shared_buffer_video_frame.h
+++ b/media/mojo/common/mojo_shared_buffer_video_frame.h
@@ -40,6 +40,15 @@ class MojoSharedBufferVideoFrame : public VideoFrame {
base::Callback<void(mojo::ScopedSharedBufferHandle buffer,
size_t capacity)>;
+ static scoped_refptr<MojoSharedBufferVideoFrame>
+ WrapMojoSharedBufferVideoFrame(
+ const scoped_refptr<MojoSharedBufferVideoFrame>& frame);
+
+ static scoped_refptr<MojoSharedBufferVideoFrame> CreateYUV(
+ VideoPixelFormat format,
+ const gfx::Size& dimensions,
+ base::TimeDelta timestamp);
+
// Creates a new I420 frame in shared memory with provided parameters
// (coded_size() == natural_size() == visible_rect()), or returns nullptr.
// Buffers for the frame are allocated but not initialized. The caller must
« no previous file with comments | « media/mojo/common/BUILD.gn ('k') | media/mojo/common/mojo_shared_buffer_video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698