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

Unified Diff: mojo/examples/pepper_container_app/pepper_container_app.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/examples/compositor_app/compositor_host.cc ('k') | mojo/examples/sample_app/gles2_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/pepper_container_app/pepper_container_app.cc
diff --git a/mojo/examples/pepper_container_app/pepper_container_app.cc b/mojo/examples/pepper_container_app/pepper_container_app.cc
index 8d8b4e925a06b60263790e9274499ca214d11a75..6e92a68b9653cf8b05c5f3f71bdf01cf57067deb 100644
--- a/mojo/examples/pepper_container_app/pepper_container_app.cc
+++ b/mojo/examples/pepper_container_app/pepper_container_app.cc
@@ -85,9 +85,9 @@ class PepperContainerApp: public Application,
// MojoPpapiGlobals::Delegate implementation.
virtual ScopedMessagePipeHandle CreateGLES2Context() OVERRIDE {
- MessagePipe gles2_pipe;
- viewport_->CreateGLES2Context(gles2_pipe.handle1.Pass());
- return gles2_pipe.handle0.Pass();
+ CommandBufferPtr command_buffer;
+ viewport_->CreateGLES2Context(Get(&command_buffer));
+ return command_buffer.PassMessagePipe();
}
private:
« no previous file with comments | « mojo/examples/compositor_app/compositor_host.cc ('k') | mojo/examples/sample_app/gles2_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698