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

Unified Diff: mojo/apps/js/bindings/gl/context.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
« no previous file with comments | « no previous file | mojo/apps/js/main.cc » ('j') | mojo/gles2/gles2_support_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/bindings/gl/context.cc
diff --git a/mojo/apps/js/bindings/gl/context.cc b/mojo/apps/js/bindings/gl/context.cc
index 250c6f8a01c11b5486a43baf3521bc872a20b210..170c5fb9e46b2118b3a5acc862b7543ca136c2be 100644
--- a/mojo/apps/js/bindings/gl/context.cc
+++ b/mojo/apps/js/bindings/gl/context.cc
@@ -11,6 +11,7 @@
#include "gin/object_template_builder.h"
#include "gin/per_context_data.h"
#include "mojo/public/c/gles2/gles2.h"
+#include "mojo/public/cpp/environment/environment.h"
namespace gin {
template<>
@@ -157,7 +158,8 @@ Context::Context(v8::Isolate* isolate,
context_ = MojoGLES2CreateContext(
handle.value(),
&ContextLostThunk,
- this);
+ this,
+ Environment::GetDefaultAsyncWaiter());
MojoGLES2MakeCurrent(context_);
}
« no previous file with comments | « no previous file | mojo/apps/js/main.cc » ('j') | mojo/gles2/gles2_support_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698