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

Unified Diff: services/surfaces/context_provider_mojo.cc

Issue 1310003004: Convert surfaces/service and dependents to MGL (Closed) Base URL: git@github.com:domokit/mojo.git@mgl_signal_sync_point
Patch Set: Created 5 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 | « services/surfaces/context_provider_mojo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/surfaces/context_provider_mojo.cc
diff --git a/services/surfaces/context_provider_mojo.cc b/services/surfaces/context_provider_mojo.cc
index fc6d3807b13419f3e525c39e61de4327366263b9..9bc4ee53e614900ff5a934a50c603cbed55d5287 100644
--- a/services/surfaces/context_provider_mojo.cc
+++ b/services/surfaces/context_provider_mojo.cc
@@ -20,9 +20,10 @@ ContextProviderMojo::ContextProviderMojo(
bool ContextProviderMojo::BindToCurrentThread() {
DCHECK(command_buffer_handle_.is_valid());
- context_ = MojoGLES2CreateContext(command_buffer_handle_.release().value(),
- &ContextLostThunk, this,
- Environment::GetDefaultAsyncWaiter());
+ context_ = MGLCreateContext(MGL_API_VERSION_GLES2,
+ command_buffer_handle_.release().value(),
+ MGL_NO_CONTEXT, &ContextLostThunk, this,
+ Environment::GetDefaultAsyncWaiter());
DCHECK(context_);
context_support_.reset(new MojoContextSupport(context_));
gles2_impl_.reset(new MojoGLES2Impl(context_));
@@ -66,7 +67,7 @@ void ContextProviderMojo::SetLostContextCallback(
ContextProviderMojo::~ContextProviderMojo() {
if (context_)
- MojoGLES2DestroyContext(context_);
+ MGLDestroyContext(context_);
}
void ContextProviderMojo::ContextLost() {
« no previous file with comments | « services/surfaces/context_provider_mojo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698