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

Unified Diff: mojo/cc/context_provider_mojo.cc

Issue 272323003: Mojo: Implement support for |Foo&| mojom syntax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/cc/context_provider_mojo.h ('k') | mojo/examples/compositor_app/compositor_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/cc/context_provider_mojo.cc
diff --git a/mojo/cc/context_provider_mojo.cc b/mojo/cc/context_provider_mojo.cc
index 8a759fd468e315c2ddb2ceeff3e413483c992d71..7356b587c4064e10048bde6be72f9ac188429cea 100644
--- a/mojo/cc/context_provider_mojo.cc
+++ b/mojo/cc/context_provider_mojo.cc
@@ -8,13 +8,17 @@
namespace mojo {
-ContextProviderMojo::ContextProviderMojo(ScopedMessagePipeHandle gl_pipe)
- : gl_pipe_(gl_pipe.Pass()) {}
+ContextProviderMojo::ContextProviderMojo(
+ ScopedMessagePipeHandle command_buffer_handle)
+ : command_buffer_handle_(command_buffer_handle.Pass()) {}
bool ContextProviderMojo::BindToCurrentThread() {
- DCHECK(gl_pipe_.is_valid());
+ DCHECK(command_buffer_handle_.is_valid());
context_ = MojoGLES2CreateContext(
- gl_pipe_.release().value(), &ContextLostThunk, NULL, this);
+ command_buffer_handle_.release().value(),
+ &ContextLostThunk,
+ NULL,
+ this);
return !!context_;
}
« no previous file with comments | « mojo/cc/context_provider_mojo.h ('k') | mojo/examples/compositor_app/compositor_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698