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

Unified Diff: cc/resources/single_release_callback.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: cc/resources/single_release_callback.cc
diff --git a/cc/resources/single_release_callback.cc b/cc/resources/single_release_callback.cc
index ff9422302bdb1683cc12d2d7379cf8b405cb3a60..20514617ef83f1831853044207114f0fe81d75b0 100644
--- a/cc/resources/single_release_callback.cc
+++ b/cc/resources/single_release_callback.cc
@@ -19,10 +19,12 @@ SingleReleaseCallback::~SingleReleaseCallback() {
DCHECK(callback_.is_null()) << "SingleReleaseCallback was never run.";
}
-void SingleReleaseCallback::Run(uint32 sync_point, bool is_lost) {
+void SingleReleaseCallback::Run(uint32 sync_point,
+ const gpu::SyncToken& sync_token,
+ bool is_lost) {
DCHECK(!callback_.is_null())
<< "SingleReleaseCallback was run more than once.";
- base::ResetAndReturn(&callback_).Run(sync_point, is_lost);
+ base::ResetAndReturn(&callback_).Run(sync_point, sync_token, is_lost);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698