| Index: mojo/shell/context.cc
|
| diff --git a/mojo/shell/context.cc b/mojo/shell/context.cc
|
| index 706c511489a72a1f4564f3c3f22e7cc3536ee1c5..d30468f06132556774c71dc7d4aaba3bce9c882c 100644
|
| --- a/mojo/shell/context.cc
|
| +++ b/mojo/shell/context.cc
|
| @@ -141,7 +141,14 @@ class Context::NativeViewportApplicationLoader
|
| // InterfaceFactory<NativeViewport> implementation.
|
| virtual void Create(ApplicationConnection* connection,
|
| InterfaceRequest<NativeViewport> request) OVERRIDE {
|
| - BindToRequest(new NativeViewportImpl, &request);
|
| + SurfacesServicePtr surfaces_service;
|
| + app_->ConnectToService("mojo:mojo_surfaces_service", &surfaces_service);
|
| + GpuPtr gpu_service;
|
| + // TODO(jamesr): Should be mojo_gpu_service
|
| + app_->ConnectToService("mojo:mojo_native_viewport_service", &gpu_service);
|
| + BindToRequest(
|
| + new NativeViewportImpl(surfaces_service.Pass(), gpu_service.Pass()),
|
| + &request);
|
| }
|
|
|
| // InterfaceFactory<Gpu> implementation.
|
|
|