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

Unified Diff: mojo/gpu/gl_context.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 | « mojo/gles2/command_buffer_client_impl.cc ('k') | mojo/public/cpp/application/application_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/gl_context.cc
diff --git a/mojo/gpu/gl_context.cc b/mojo/gpu/gl_context.cc
index d34b3a54cee4fce108342284191225e4e187408c..73941d64488c8393f1f8f54f7cefd293fbcf1766 100644
--- a/mojo/gpu/gl_context.cc
+++ b/mojo/gpu/gl_context.cc
@@ -22,8 +22,8 @@ GLContext::GLContext(Shell* shell) : weak_factory_(this) {
CommandBufferPtr command_buffer;
gpu_service->CreateOffscreenGLES2Context(GetProxy(&command_buffer));
context_ = MojoGLES2CreateContext(
- command_buffer.PassMessagePipe().release().value(), &ContextLostThunk,
- this, Environment::GetDefaultAsyncWaiter());
+ command_buffer.PassInterface().PassHandle().release().value(),
+ &ContextLostThunk, this, Environment::GetDefaultAsyncWaiter());
gl_ = static_cast<gpu::gles2::GLES2Interface*>(
MojoGLES2GetGLES2Interface(context_));
}
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | mojo/public/cpp/application/application_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698