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

Unified Diff: content/browser/media/capture/aura_window_capture_machine.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/browser/media/capture/aura_window_capture_machine.cc
diff --git a/content/browser/media/capture/aura_window_capture_machine.cc b/content/browser/media/capture/aura_window_capture_machine.cc
index 0ef3d18b2f9a4a838ec3821822bc989243f7e84b..d398c6d756b86feb5baf7dc12e67eb36c9265ddb 100644
--- a/content/browser/media/capture/aura_window_capture_machine.cc
+++ b/content/browser/media/capture/aura_window_capture_machine.cc
@@ -282,9 +282,8 @@ bool AuraWindowCaptureMachine::ProcessCopyOutputResponse(
if (!texture_mailbox.IsTexture())
return false;
video_frame = media::VideoFrame::WrapNativeTexture(
- make_scoped_ptr(new gpu::MailboxHolder(texture_mailbox.mailbox(),
- texture_mailbox.target(),
- texture_mailbox.sync_point())),
+ gpu::MailboxHolder(texture_mailbox.mailbox(), texture_mailbox.target(),
+ texture_mailbox.sync_point()),
base::Bind(&RunSingleReleaseCallback, base::Passed(&release_callback)),
result->size(), gfx::Rect(result->size()), result->size(),
base::TimeDelta(), false);

Powered by Google App Engine
This is Rietveld 408576698