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

Unified Diff: content/browser/renderer_host/media/video_capture_controller_unittest.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/renderer_host/media/video_capture_controller_unittest.cc
diff --git a/content/browser/renderer_host/media/video_capture_controller_unittest.cc b/content/browser/renderer_host/media/video_capture_controller_unittest.cc
index 24f20737aae427e5d41b3aac38f35b956d76eb69..fe3ff61921a6e9b74108a3d7fe28458370e37fa0 100644
--- a/content/browser/renderer_host/media/video_capture_controller_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_controller_unittest.cc
@@ -147,12 +147,12 @@ class VideoCaptureControllerTest : public testing::Test {
}
scoped_refptr<media::VideoFrame> WrapMailboxBuffer(
- scoped_ptr<gpu::MailboxHolder> holder,
+ const gpu::MailboxHolder& holder,
const media::VideoFrame::ReleaseMailboxCB& release_cb,
gfx::Size dimensions) {
return media::VideoFrame::WrapNativeTexture(
- holder.Pass(), release_cb, dimensions, gfx::Rect(dimensions),
- dimensions, base::TimeDelta(), false);
+ holder, release_cb, dimensions, gfx::Rect(dimensions), dimensions,
+ base::TimeDelta(), false);
}
TestBrowserThreadBundle bundle_;
@@ -488,10 +488,10 @@ TEST_F(VideoCaptureControllerTest, NormalCaptureMultipleClients) {
#endif
device_->OnIncomingCapturedVideoFrame(
buffer.Pass(),
- WrapMailboxBuffer(make_scoped_ptr(new gpu::MailboxHolder(
- gpu::Mailbox(), 0, mailbox_syncpoints[i])),
- base::Bind(&CacheSyncPoint, &release_syncpoints[i]),
- capture_resolution),
+ WrapMailboxBuffer(
+ gpu::MailboxHolder(gpu::Mailbox(), 0, mailbox_syncpoints[i]),
+ base::Bind(&CacheSyncPoint, &release_syncpoints[i]),
+ capture_resolution),
base::TimeTicks());
}
// ReserveOutputBuffers ought to fail now regardless of buffer format, because

Powered by Google App Engine
This is Rietveld 408576698