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

Unified Diff: content/renderer/media/video_capture_message_filter.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: Fix mock gpu video accelerator factory Created 5 years, 2 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/renderer/media/video_capture_message_filter.cc
diff --git a/content/renderer/media/video_capture_message_filter.cc b/content/renderer/media/video_capture_message_filter.cc
index 23704ea661ecffd3e1ff0c6ba1815f8a9730eb8b..eb76f89f4e64c85844f4cd0a7581b548f97a0000 100644
--- a/content/renderer/media/video_capture_message_filter.cc
+++ b/content/renderer/media/video_capture_message_filter.cc
@@ -114,6 +114,7 @@ void VideoCaptureMessageFilter::OnBufferCreated(int device_id,
Send(new VideoCaptureHostMsg_BufferReady(
device_id, buffer_id, 0 /* release_sync_point */,
+ gpu::SyncToken() /* release_sync_token */,
-1.0 /* consumer_resource_utilization */));
return;
}
@@ -132,6 +133,7 @@ void VideoCaptureMessageFilter::OnBufferCreated2(
"non-existent or removed video capture.";
Send(new VideoCaptureHostMsg_BufferReady(
device_id, buffer_id, 0 /* release_sync_point */,
+ gpu::SyncToken() /* release_sync_token */,
-1.0 /* consumer_resource_utilization */));
return;
}
@@ -148,8 +150,8 @@ void VideoCaptureMessageFilter::OnBufferReceived(
// Send the buffer back to Host in case it's waiting for all buffers
// to be returned.
- Send(new VideoCaptureHostMsg_BufferReady(
- params.device_id, params.buffer_id, 0, -1.0));
+ Send(new VideoCaptureHostMsg_BufferReady(params.device_id, params.buffer_id,
+ 0, gpu::SyncToken(), -1.0));
return;
}

Powered by Google App Engine
This is Rietveld 408576698