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

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

Issue 1064703002: VideoCaptureBufferPool: Refactor to allow support of non-ShMem backed buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: miu@s nits Created 5 years, 8 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 39fd9857b3ee4da108bd71fedd1616bdc1fa975c..e8f446fc6cf33f897760d147e737527fb5afc5d6 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
@@ -45,12 +45,11 @@ class VideoCaptureBufferPoolTest : public testing::Test {
}
scoped_ptr<Buffer> ReserveI420Buffer(const gfx::Size& dimensions) {
- const size_t frame_bytes =
- media::VideoFrame::AllocationSize(media::VideoFrame::I420, dimensions);
// To verify that ReserveI420Buffer always sets |buffer_id_to_drop|,
// initialize it to something different than the expected value.
int buffer_id_to_drop = ~expected_dropped_id_;
- int buffer_id = pool_->ReserveForProducer(frame_bytes, &buffer_id_to_drop);
+ int buffer_id = pool_->ReserveForProducer(media::PIXEL_FORMAT_I420,
+ dimensions, &buffer_id_to_drop);
if (buffer_id == VideoCaptureBufferPool::kInvalidId)
return scoped_ptr<Buffer>();

Powered by Google App Engine
This is Rietveld 408576698