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

Unified Diff: mojo/examples/sample_app/gles2_client_impl.cc

Issue 428413002: Make async waiter explicit MojoGLES2CreateContext param (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: mojo/examples/sample_app/gles2_client_impl.cc
diff --git a/mojo/examples/sample_app/gles2_client_impl.cc b/mojo/examples/sample_app/gles2_client_impl.cc
index ad4b93eeaaeec1dadaf4b488e74e83b60cea10d1..14a50840d965b3614183124369db1d715bd0ed6d 100644
--- a/mojo/examples/sample_app/gles2_client_impl.cc
+++ b/mojo/examples/sample_app/gles2_client_impl.cc
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include "mojo/public/c/gles2/gles2.h"
+#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/utility/run_loop.h"
namespace examples {
@@ -31,7 +32,8 @@ GLES2ClientImpl::GLES2ClientImpl(mojo::CommandBufferPtr command_buffer)
context_ = MojoGLES2CreateContext(
command_buffer.PassMessagePipe().release().value(),
&ContextLostThunk,
- this);
+ this,
+ mojo::Environment::GetDefaultAsyncWaiter());
MojoGLES2MakeCurrent(context_);
}

Powered by Google App Engine
This is Rietveld 408576698