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

Unified Diff: ui/aura/bench/bench_main.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: ui/aura/bench/bench_main.cc
diff --git a/ui/aura/bench/bench_main.cc b/ui/aura/bench/bench_main.cc
index ce855720fa62086d7e3e57df962c29cf12508e44..0070fd3f70d4bda4d2c6daad6b3fc81269a29444 100644
--- a/ui/aura/bench/bench_main.cc
+++ b/ui/aura/bench/bench_main.cc
@@ -143,9 +143,10 @@ class BenchCompositorObserver : public ui::CompositorObserver {
void ReturnMailbox(scoped_refptr<cc::ContextProvider> context_provider,
GLuint texture,
GLuint sync_point,
+ const gpu::SyncToken& sync_token,
bool is_lost) {
gpu::gles2::GLES2Interface* gl = context_provider->ContextGL();
- gl->WaitSyncPointCHROMIUM(sync_point);
+ gl->WaitSyncPointCHROMIUM(sync_point, sync_token.GetConstData());
gl->DeleteTextures(1, &texture);
gl->ShallowFlushCHROMIUM();
}

Powered by Google App Engine
This is Rietveld 408576698