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

Unified Diff: content/renderer/media/video_capture_impl.cc

Issue 1117423002: media: Let VideoFrame carry more than one native texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reveman's comments. Created 5 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
Index: content/renderer/media/video_capture_impl.cc
diff --git a/content/renderer/media/video_capture_impl.cc b/content/renderer/media/video_capture_impl.cc
index 9b104d28a7a1dd0517843d55e1a18f10a0fd6d13..f45ad7f4ced9302581bf627232b5ca6e39ef2df8 100644
--- a/content/renderer/media/video_capture_impl.cc
+++ b/content/renderer/media/video_capture_impl.cc
@@ -276,7 +276,7 @@ void VideoCaptureImpl::OnMailboxBufferReceived(
first_frame_timestamp_ = timestamp;
scoped_refptr<media::VideoFrame> frame = media::VideoFrame::WrapNativeTexture(
- make_scoped_ptr(new gpu::MailboxHolder(mailbox_holder)),
+ mailbox_holder,
media::BindToCurrentLoop(base::Bind(
&VideoCaptureImpl::OnClientBufferFinished, weak_factory_.GetWeakPtr(),
buffer_id, scoped_refptr<ClientBuffer>())),

Powered by Google App Engine
This is Rietveld 408576698