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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1909133002: Add MGLEcho (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: git add Created 4 years, 8 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
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gpu_control.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index cc3aaf47e9686284707731c9e6a1fb6724d434a3..077ab451ae1f9e488445e9ddb3a92f7a7b3c9fc3 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -287,6 +287,12 @@ void GLES2Implementation::RunIfContextNotLost(const base::Closure& callback) {
callback.Run();
}
+void GLES2Implementation::Echo(const base::Closure& callback) {
+ ShallowFlushCHROMIUM();
+ gpu_control_->Echo(base::Bind(&GLES2Implementation::RunIfContextNotLost,
+ weak_ptr_factory_.GetWeakPtr(), callback));
+}
+
void GLES2Implementation::SignalSyncPoint(uint32 sync_point,
const base::Closure& callback) {
gpu_control_->SignalSyncPoint(
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gpu_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698