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

Unified Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 198343002: Mojo: request/response bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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 | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/mojo_public.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index 60fa366ab0574f5bd156f7b0e8a894003b02e7f7..97f78d592b57f62cecaf8eb10c805c8640dacc2c 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -216,8 +216,7 @@ void CommandBufferClientImpl::SendManagedMemoryStats(
}
void CommandBufferClientImpl::Echo(const base::Closure& callback) {
- echo_closures_.push(callback);
- command_buffer_->Echo();
+ command_buffer_->Echo(callback);
}
uint32 CommandBufferClientImpl::CreateStreamTexture(uint32 texture_id) {
@@ -247,12 +246,6 @@ void CommandBufferClientImpl::DidDestroy() {
LostContext(gpu::error::kUnknown);
}
-void CommandBufferClientImpl::EchoAck() {
- base::Closure closure = echo_closures_.front();
- echo_closures_.pop();
- closure.Run();
-}
-
void CommandBufferClientImpl::LostContext(int32_t lost_reason) {
last_state_.error = gpu::error::kLostContext;
last_state_.context_lost_reason =
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/mojo_public.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698