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

Unified Diff: mojo/cc/context_provider_mojo.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 | « mojo/apps/js/main.cc ('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 1dd62d8a08bd8c3fda2a9e838ba8afeee7d04b69..16c6f8c6ac2bc2a84e17287b827a84e797da9497 100644
--- a/mojo/cc/context_provider_mojo.cc
+++ b/mojo/cc/context_provider_mojo.cc
@@ -5,6 +5,7 @@
#include "mojo/cc/context_provider_mojo.h"
#include "base/logging.h"
+#include "mojo/public/cpp/environment/environment.h"
namespace mojo {
@@ -16,10 +17,10 @@ ContextProviderMojo::ContextProviderMojo(
bool ContextProviderMojo::BindToCurrentThread() {
DCHECK(command_buffer_handle_.is_valid());
- context_ = MojoGLES2CreateContext(
- command_buffer_handle_.release().value(),
- &ContextLostThunk,
- this);
+ context_ = MojoGLES2CreateContext(command_buffer_handle_.release().value(),
+ &ContextLostThunk,
+ this,
+ Environment::GetDefaultAsyncWaiter());
return !!context_;
}
« no previous file with comments | « mojo/apps/js/main.cc ('k') | mojo/examples/compositor_app/compositor_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698