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

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

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 1 month 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 70c6112c0978edbd6aff3bec258575ec1992a9ea..a26a9c30cc404a464956667f507bc70a001e5866 100644
--- a/content/browser/renderer_host/media/video_capture_host_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_host_unittest.cc
@@ -151,7 +151,8 @@ class MockVideoCaptureHost : public VideoCaptureHost {
void ReturnReceivedDibs(int device_id) {
int handle = GetReceivedDib();
while (handle) {
- this->OnRendererFinishedWithBuffer(device_id, handle, 0, -1.0);
+ this->OnRendererFinishedWithBuffer(device_id, handle, gpu::SyncToken(),
+ -1.0);
handle = GetReceivedDib();
}
}
@@ -231,7 +232,7 @@ class MockVideoCaptureHost : public VideoCaptureHost {
OnBufferFilled(params.device_id);
if (return_buffers_) {
VideoCaptureHost::OnRendererFinishedWithBuffer(
- params.device_id, params.buffer_id, 0, -1.0);
+ params.device_id, params.buffer_id, gpu::SyncToken(), -1.0);
}
}
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698