| Index: mojo/gpu/gl_context.cc
|
| diff --git a/mojo/gpu/gl_context.cc b/mojo/gpu/gl_context.cc
|
| index 05bd1e355269ad9a72bb2df570f260770499dc60..9cbc94fc24ea7f915267cb4fd9084160366161b4 100644
|
| --- a/mojo/gpu/gl_context.cc
|
| +++ b/mojo/gpu/gl_context.cc
|
| @@ -4,7 +4,7 @@
|
|
|
| #include "mojo/gpu/gl_context.h"
|
| #include "mojo/public/cpp/application/connect.h"
|
| -#include "mojo/public/interfaces/application/shell.mojom.h"
|
| +#include "mojo/public/interfaces/application/application_connector.mojom.h"
|
| #include "mojo/services/gpu/interfaces/gpu.mojom.h"
|
|
|
| namespace mojo {
|
| @@ -24,10 +24,11 @@ GLContext::~GLContext() {
|
| MGLDestroyContext(context_);
|
| }
|
|
|
| -base::WeakPtr<GLContext> GLContext::Create(Shell* shell) {
|
| +base::WeakPtr<GLContext> GLContext::CreateOffscreen(
|
| + ApplicationConnector* connector) {
|
| ServiceProviderPtr native_viewport;
|
| - shell->ConnectToApplication("mojo:native_viewport_service",
|
| - GetProxy(&native_viewport), nullptr);
|
| + connector->ConnectToApplication("mojo:native_viewport_service",
|
| + GetProxy(&native_viewport), nullptr);
|
| GpuPtr gpu_service;
|
| ConnectToService(native_viewport.get(), &gpu_service);
|
| CommandBufferPtr command_buffer;
|
|
|