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

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

Issue 1157193002: RESOURCE_UTILIZATION in VideoFrameMetadata, a consumer feedback signal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video_frame_done_callback
Patch Set: Created 5 years, 7 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_host_unittest.cc
diff --git a/content/browser/renderer_host/media/video_capture_host_unittest.cc b/content/browser/renderer_host/media/video_capture_host_unittest.cc
index 763ed1f9ca83edcafa1e45d3e0904002209de377..dc29d5357a423a45d077da69b6cebe0766fca29b 100644
--- a/content/browser/renderer_host/media/video_capture_host_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_host_unittest.cc
@@ -163,7 +163,7 @@ class MockVideoCaptureHost : public VideoCaptureHost {
void ReturnReceivedDibs(int device_id) {
int handle = GetReceivedDib();
while (handle) {
- this->OnReceiveEmptyBuffer(device_id, handle, 0);
+ this->OnRendererFinishedWithBuffer(device_id, handle, 0, -1.0);
handle = GetReceivedDib();
}
}
@@ -245,8 +245,8 @@ class MockVideoCaptureHost : public VideoCaptureHost {
OnBufferFilled(params.device_id, params.buffer_id, params.coded_size,
params.visible_rect, params.timestamp, params.metadata);
if (return_buffers_) {
- VideoCaptureHost::OnReceiveEmptyBuffer(
- params.device_id, params.buffer_id, 0);
+ VideoCaptureHost::OnRendererFinishedWithBuffer(
+ params.device_id, params.buffer_id, 0, -1.0);
}
}
@@ -256,8 +256,8 @@ class MockVideoCaptureHost : public VideoCaptureHost {
params.mailbox_holder, params.packed_frame_size,
params.timestamp, params.metadata);
if (return_buffers_) {
- VideoCaptureHost::OnReceiveEmptyBuffer(
- params.device_id, params.buffer_id, 0);
+ VideoCaptureHost::OnRendererFinishedWithBuffer(
+ params.device_id, params.buffer_id, 0, -1.0);
}
}

Powered by Google App Engine
This is Rietveld 408576698