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

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, 4 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') | no next file with comments »
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..4754d4efda1468cd57e61620b8ea437afb48ef2e 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<>
@@ -154,10 +155,10 @@ Context::Context(v8::Isolate* isolate,
v8::Handle<v8::Context> context = isolate->GetCurrentContext();
runner_ = gin::PerContextData::From(context)->runner()->GetWeakPtr();
context_lost_callback_.Reset(isolate, context_lost_callback);
- context_ = MojoGLES2CreateContext(
- handle.value(),
- &ContextLostThunk,
- this);
+ context_ = MojoGLES2CreateContext(handle.value(),
+ &ContextLostThunk,
+ this,
+ Environment::GetDefaultAsyncWaiter());
MojoGLES2MakeCurrent(context_);
}
« no previous file with comments | « no previous file | mojo/apps/js/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698