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

Unified Diff: content/browser/renderer_host/media/video_capture_host.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.cc
diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc
index d624125d7fc7d859c0d7457221233e38f642fb07..f07dfbc63fc57893cefeeb6dae96d02f50b41c01 100644
--- a/content/browser/renderer_host/media/video_capture_host.cc
+++ b/content/browser/renderer_host/media/video_capture_host.cc
@@ -270,7 +270,7 @@ void VideoCaptureHost::OnResumeCapture(
void VideoCaptureHost::OnRendererFinishedWithBuffer(
int device_id,
int buffer_id,
- uint32 sync_point,
+ const gpu::SyncToken& sync_token,
double consumer_resource_utilization) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
@@ -279,10 +279,7 @@ void VideoCaptureHost::OnRendererFinishedWithBuffer(
if (it != entries_.end()) {
const base::WeakPtr<VideoCaptureController>& controller = it->second;
if (controller) {
- controller->ReturnBuffer(controller_id,
- this,
- buffer_id,
- sync_point,
+ controller->ReturnBuffer(controller_id, this, buffer_id, sync_token,
consumer_resource_utilization);
}
}

Powered by Google App Engine
This is Rietveld 408576698