| 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() {
|
|
|