diff options
Diffstat (limited to 'content/renderer/gpu/gpu_channel_host.cc')
-rw-r--r-- | content/renderer/gpu/gpu_channel_host.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/content/renderer/gpu/gpu_channel_host.cc b/content/renderer/gpu/gpu_channel_host.cc index 73bf14f..343f777 100644 --- a/content/renderer/gpu/gpu_channel_host.cc +++ b/content/renderer/gpu/gpu_channel_host.cc @@ -8,7 +8,6 @@ #include "content/common/child_process.h" #include "content/common/gpu/gpu_messages.h" #include "content/renderer/gpu/command_buffer_proxy.h" -#include "content/renderer/gpu/gpu_surface_proxy.h" #include "content/renderer/gpu/transport_texture_service.h" #include "content/renderer/render_process.h" #include "content/renderer/render_thread.h" @@ -298,31 +297,6 @@ void GpuChannelHost::DestroyCommandBuffer(CommandBufferProxy* command_buffer) { #endif } -GpuSurfaceProxy* GpuChannelHost::CreateOffscreenSurface( - const gfx::Size& size) { -#if defined(ENABLE_GPU) - AutoLock lock(context_lock_); - int route_id; - if (!Send(new GpuChannelMsg_CreateOffscreenSurface(size, &route_id))) - return NULL; - - scoped_ptr<GpuSurfaceProxy> surface(new GpuSurfaceProxy(this, route_id)); - AddRoute(route_id, surface->AsWeakPtr()); - - return surface.release(); -#endif -} - -void GpuChannelHost::DestroySurface(GpuSurfaceProxy* surface) { -#if defined(ENABLE_GPU) - AutoLock lock(context_lock_); - Send(new GpuChannelMsg_DestroySurface(surface->route_id())); - - RemoveRoute(surface->route_id()); - delete surface; -#endif -} - void GpuChannelHost::AddRoute( int route_id, base::WeakPtr<IPC::Channel::Listener> listener) { DCHECK(MessageLoopProxy::current()); |