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

Unified Diff: examples/surfaces_app/child_gl_impl.cc

Issue 1118843003: Remove some InterfacePtr<> methods which directly deal with message pipe handles. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « examples/spinning_cube/gles2_client_impl.cc ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/surfaces_app/child_gl_impl.cc
diff --git a/examples/surfaces_app/child_gl_impl.cc b/examples/surfaces_app/child_gl_impl.cc
index 97cd9a13d2f02db62d4105aa908354dd0a7939bd..4463bf5ffc15d264c7420efd5387f3bd3a19f854 100644
--- a/examples/surfaces_app/child_gl_impl.cc
+++ b/examples/surfaces_app/child_gl_impl.cc
@@ -59,11 +59,9 @@ ChildGLImpl::ChildGLImpl(ApplicationConnection* surfaces_service_connection,
ResourceReturnerPtr returner_ptr;
returner_binding_.Bind(GetProxy(&returner_ptr));
surface_->SetResourceReturner(returner_ptr.Pass());
- context_ =
- MojoGLES2CreateContext(command_buffer.PassMessagePipe().release().value(),
- &ContextLostThunk,
- this,
- Environment::GetDefaultAsyncWaiter());
+ context_ = MojoGLES2CreateContext(
+ command_buffer.PassInterface().PassHandle().release().value(),
+ &ContextLostThunk, this, Environment::GetDefaultAsyncWaiter());
DCHECK(context_);
MojoGLES2MakeCurrent(context_);
}
« no previous file with comments | « examples/spinning_cube/gles2_client_impl.cc ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698