| Index: content/browser/compositor/gpu_process_transport_factory.cc
|
| diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
|
| index 7d4769ac53f5bc4b274fd3a8cfd942147ba44a41..72db5eca141c74fd53992969d19cc3eeef5b6c89 100644
|
| --- a/content/browser/compositor/gpu_process_transport_factory.cc
|
| +++ b/content/browser/compositor/gpu_process_transport_factory.cc
|
| @@ -481,12 +481,15 @@ ui::ContextFactory* GpuProcessTransportFactory::GetContextFactory() {
|
| return this;
|
| }
|
|
|
| +cc::SurfaceManager* GpuProcessTransportFactory::GetSurfaceManager() {
|
| + return surface_manager_.get();
|
| +}
|
| +
|
| scoped_ptr<cc::SurfaceIdAllocator>
|
| GpuProcessTransportFactory::CreateSurfaceIdAllocator() {
|
| scoped_ptr<cc::SurfaceIdAllocator> allocator =
|
| make_scoped_ptr(new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
|
| - if (GetSurfaceManager())
|
| - allocator->RegisterSurfaceIdNamespace(GetSurfaceManager());
|
| + allocator->RegisterSurfaceIdNamespace(surface_manager_.get());
|
| return allocator;
|
| }
|
|
|
| @@ -501,10 +504,6 @@ void GpuProcessTransportFactory::ResizeDisplay(ui::Compositor* compositor,
|
| data->display_client->display()->Resize(size);
|
| }
|
|
|
| -cc::SurfaceManager* GpuProcessTransportFactory::GetSurfaceManager() {
|
| - return surface_manager_.get();
|
| -}
|
| -
|
| GLHelper* GpuProcessTransportFactory::GetGLHelper() {
|
| if (!gl_helper_ && !per_compositor_data_.empty()) {
|
| scoped_refptr<cc::ContextProvider> provider =
|
|
|