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

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: 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..29fa5a23c8cf1c85374014cd03e809127f7824e9 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,11 @@ class StubClient : public media::VideoCaptureDevice::Client {
}
scoped_refptr<media::VideoCaptureDevice::Client::Buffer> ReserveOutputBuffer(
- media::VideoFrame::Format format,
- const gfx::Size& dimensions) override {
- CHECK_EQ(format, media::VideoFrame::I420);
- const size_t frame_bytes =
- media::VideoFrame::AllocationSize(media::VideoFrame::I420, dimensions);
+ const media::VideoCaptureFormat& format) override {
+ CHECK_EQ(format.pixel_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);
+ buffer_pool_->ReserveForProducer(format, &buffer_id_to_drop);
if (buffer_id == VideoCaptureBufferPool::kInvalidId)
return NULL;
void* data;

Powered by Google App Engine
This is Rietveld 408576698