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

Unified Diff: examples/spinning_cube/gles2_client_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/indirect_service/indirect_service_demo.cc ('k') | examples/surfaces_app/child_gl_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/spinning_cube/gles2_client_impl.cc
diff --git a/examples/spinning_cube/gles2_client_impl.cc b/examples/spinning_cube/gles2_client_impl.cc
index f6c05799df8851e03683cdd374936f224988f2ff..ce638ead891c0aca1c1c00a02186616feb9701e7 100644
--- a/examples/spinning_cube/gles2_client_impl.cc
+++ b/examples/spinning_cube/gles2_client_impl.cc
@@ -107,8 +107,8 @@ void GLES2ClientImpl::HandleInputEvent(const mojo::Event& event) {
void GLES2ClientImpl::ContextCreated(mojo::CommandBufferPtr command_buffer) {
context_ = MojoGLES2CreateContext(
- command_buffer.PassMessagePipe().release().value(), &ContextLostThunk,
- this, mojo::Environment::GetDefaultAsyncWaiter());
+ command_buffer.PassInterface().PassHandle().release().value(),
+ &ContextLostThunk, this, mojo::Environment::GetDefaultAsyncWaiter());
MojoGLES2MakeCurrent(context_);
cube_.Init();
WantToDraw();
« no previous file with comments | « examples/indirect_service/indirect_service_demo.cc ('k') | examples/surfaces_app/child_gl_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698