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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device_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/media/capture/web_contents_video_capture_device_unittest.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
index 10d8c064b033b8ff3c13b22e3a1e7acd863500fa..8b24ed798021ee8e4b6da1059bf0f2d09cd4477e 100644
--- a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
@@ -336,14 +336,12 @@ class StubClient : public media::VideoCaptureDevice::Client {
}
scoped_refptr<media::VideoCaptureDevice::Client::Buffer> ReserveOutputBuffer(
- media::VideoFrame::Format format,
+ media::VideoPixelFormat format,
const gfx::Size& dimensions) override {
- CHECK_EQ(format, media::VideoFrame::I420);
- const size_t frame_bytes =
- media::VideoFrame::AllocationSize(media::VideoFrame::I420, dimensions);
+ CHECK_EQ(format, media::PIXEL_FORMAT_I420);
int buffer_id_to_drop = VideoCaptureBufferPool::kInvalidId; // Ignored.
- int buffer_id =
- buffer_pool_->ReserveForProducer(frame_bytes, &buffer_id_to_drop);
+ int buffer_id = buffer_pool_->ReserveForProducer(format, dimensions,
+ &buffer_id_to_drop);
if (buffer_id == VideoCaptureBufferPool::kInvalidId)
return NULL;
void* data;

Powered by Google App Engine
This is Rietveld 408576698