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

Unified Diff: content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc

Issue 22935009: Add content::SurfaceCapturer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_stride
Patch Set: cff149b4 WIP Created 7 years, 4 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/web_contents_video_capture_device_unittest.cc
diff --git a/content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc b/content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc
index c4e5f5f3c1928588fcefdaa4a06f124f336b3af1..5493ae49551ea05ea2e582dda5fed97ff9f611ba 100644
--- a/content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc
+++ b/content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc
@@ -310,8 +310,10 @@ class StubConsumer : public media::VideoCaptureDevice::EventHandler {
StubConsumer()
: error_encountered_(false),
wait_color_yuv_(0xcafe1950) {
- buffer_pool_ =
- new VideoCaptureBufferPool(kTestWidth * kTestHeight * 3 / 2, 2);
+ buffer_pool_ = new VideoCaptureBufferPool(
+ media::VideoFrame::AllocationSize(media::VideoFrame::I420,
+ gfx::Size(kTestWidth, kTestHeight),
+ 2);
EXPECT_TRUE(buffer_pool_->Allocate());
}
virtual ~StubConsumer() {}

Powered by Google App Engine
This is Rietveld 408576698