| Index: services/native_viewport/main.cc
|
| diff --git a/services/native_viewport/main.cc b/services/native_viewport/main.cc
|
| index 459b8f5bccf8f7cee376b1220e5e5e9e3d9a2d98..81055170632662a0c4a39383f61409ddf063b852 100644
|
| --- a/services/native_viewport/main.cc
|
| +++ b/services/native_viewport/main.cc
|
| @@ -55,19 +55,21 @@ class NativeViewportAppDelegate : public mojo::ApplicationDelegate,
|
| // mojo::InterfaceFactory<NativeViewport> implementation.
|
| void Create(ApplicationConnection* connection,
|
| mojo::InterfaceRequest<NativeViewport> request) override {
|
| - new NativeViewportImpl(app_, is_headless_, request.Pass());
|
| + if (!gpu_state_.get())
|
| + gpu_state_ = new gles2::GpuState;
|
| + new NativeViewportImpl(app_, is_headless_, gpu_state_, request.Pass());
|
| }
|
|
|
| // mojo::InterfaceFactory<Gpu> implementation.
|
| void Create(ApplicationConnection* connection,
|
| mojo::InterfaceRequest<Gpu> request) override {
|
| if (!gpu_state_.get())
|
| - gpu_state_ = new gles2::GpuImpl::State;
|
| + gpu_state_ = new gles2::GpuState;
|
| new gles2::GpuImpl(request.Pass(), gpu_state_);
|
| }
|
|
|
| mojo::ApplicationImpl* app_;
|
| - scoped_refptr<gles2::GpuImpl::State> gpu_state_;
|
| + scoped_refptr<gles2::GpuState> gpu_state_;
|
| bool is_headless_;
|
| mojo::TracingImpl tracing_;
|
|
|
|
|