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

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_pool_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/video_capture_buffer_pool_unittest.cc
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc b/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc
index 67a8be4c761945d8b1b6809fb219b85af6ea1c58..30509a34c75f9c478b6582b7d2d4f76239a420c5 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc
@@ -21,8 +21,8 @@ TEST(VideoCaptureBufferPoolTest, BufferPool) {
scoped_refptr<media::VideoFrame> non_pool_frame =
media::VideoFrame::CreateFrame(media::VideoFrame::YV12, size,
gfx::Rect(size), size, base::TimeDelta());
- scoped_refptr<VideoCaptureBufferPool> pool =
- new VideoCaptureBufferPool(size.GetArea() * 3 / 2, 3);
+ scoped_refptr<VideoCaptureBufferPool> pool = new VideoCaptureBufferPool(
+ media::VideoFrame::AllocationSize(media::VideoFrame::I420, size), 3);
ASSERT_EQ(460800u, pool->GetMemorySize());
ASSERT_TRUE(pool->Allocate());

Powered by Google App Engine
This is Rietveld 408576698