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

Unified Diff: components/mus/public/cpp/lib/context_provider.cc

Issue 1754683003: Mojo bindings environment: remove usage in gles2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « components/bitmap_uploader/bitmap_uploader.cc ('k') | mojo/gles2/command_buffer_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/context_provider.cc
diff --git a/components/mus/public/cpp/lib/context_provider.cc b/components/mus/public/cpp/lib/context_provider.cc
index d2d6ce012d22298629c102e93a8f48caee4c69da..0b0b470a7c111c43ce3b3cbf8e5428726d76b448 100644
--- a/components/mus/public/cpp/lib/context_provider.cc
+++ b/components/mus/public/cpp/lib/context_provider.cc
@@ -9,7 +9,6 @@
#include "base/logging.h"
#include "mojo/gles2/gles2_context.h"
#include "mojo/gpu/mojo_gles2_impl_autogen.h"
-#include "mojo/public/cpp/environment/environment.h"
namespace mus {
@@ -25,8 +24,7 @@ ContextProvider::ContextProvider(
bool ContextProvider::BindToCurrentThread() {
DCHECK(command_buffer_handle_.is_valid());
context_ = MojoGLES2CreateContext(command_buffer_handle_.release().value(),
- nullptr, &ContextLostThunk, this,
- mojo::Environment::GetDefaultAsyncWaiter());
+ nullptr, &ContextLostThunk, this);
context_gl_.reset(new mojo::MojoGLES2Impl(context_));
return !!context_;
}
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.cc ('k') | mojo/gles2/command_buffer_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698