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

Unified Diff: media/base/video_frame.h

Issue 1960563002: Add media::VideoFrame::WrapNativeTextures() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « content/renderer/media/rtc_video_decoder.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 53ca5661042bc852528f6140e0cb34e878f45a98..e4eeae48d1eb1a5fc5fc72100fa44e405fd2d134 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -124,26 +124,12 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
const gfx::Size& natural_size,
base::TimeDelta timestamp);
- // Wraps a native texture of the given parameters with a VideoFrame.
- // The backing of the VideoFrame is held in the mailbox held by
- // |mailbox_holder|, and |mailbox_holder_release_cb| will be called with
- // a sync token as the argument when the VideoFrame is to be destroyed.
- static scoped_refptr<VideoFrame> WrapNativeTexture(
- VideoPixelFormat format,
- const gpu::MailboxHolder& mailbox_holder,
- const ReleaseMailboxCB& mailbox_holder_release_cb,
- const gfx::Size& coded_size,
- const gfx::Rect& visible_rect,
- const gfx::Size& natural_size,
- base::TimeDelta timestamp);
-
- // Wraps a set of native textures representing YUV data with a VideoFrame.
+ // Wraps a set of native textures with a VideoFrame.
// |mailbox_holders_release_cb| will be called with a sync token as the
// argument when the VideoFrame is to be destroyed.
- static scoped_refptr<VideoFrame> WrapYUV420NativeTextures(
- const gpu::MailboxHolder& y_mailbox_holder,
- const gpu::MailboxHolder& u_mailbox_holder,
- const gpu::MailboxHolder& v_mailbox_holder,
+ static scoped_refptr<VideoFrame> WrapNativeTextures(
+ VideoPixelFormat format,
+ const gpu::MailboxHolder (&mailbox_holder)[kMaxPlanes],
const ReleaseMailboxCB& mailbox_holders_release_cb,
const gfx::Size& coded_size,
const gfx::Rect& visible_rect,
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698