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

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: 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/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 9b4c81c4a28500acacb57da97b2451fdba7abde9..a75e3694629bdab6de794f0e178274886e7d1811 100644
--- a/content/renderer/media/video_capture_message_filter.cc
+++ b/content/renderer/media/video_capture_message_filter.cc
@@ -113,7 +113,7 @@ void VideoCaptureMessageFilter::OnBufferCreated(int device_id,
base::SharedMemory::CloseHandle(handle);
Send(new VideoCaptureHostMsg_BufferReady(
- device_id, buffer_id, 0 /* release_sync_point */,
+ device_id, buffer_id, gpu::SyncToken() /* release_sync_token */,
-1.0 /* consumer_resource_utilization */));
return;
}
@@ -131,7 +131,7 @@ void VideoCaptureMessageFilter::OnBufferCreated2(
DLOG(WARNING) << "OnBufferCreated: Got video GMB buffer for a "
"non-existent or removed video capture.";
Send(new VideoCaptureHostMsg_BufferReady(
- device_id, buffer_id, 0 /* release_sync_point */,
+ device_id, buffer_id, gpu::SyncToken() /* release_sync_token */,
-1.0 /* consumer_resource_utilization */));
return;
}
@@ -148,8 +148,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,
+ gpu::SyncToken(), -1.0));
return;
}
« no previous file with comments | « content/renderer/media/video_capture_impl_unittest.cc ('k') | content/renderer/media/video_capture_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698