summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/gpu_channel.cc')
-rw-r--r--content/common/gpu/gpu_channel.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index 5423544..338d426 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -126,14 +126,6 @@ void GpuChannel::LoseAllContexts() {
gpu_channel_manager_->LoseAllContexts();
}
-gfx::GLSurface* GpuChannel::LookupSurface(int surface_id) {
- GpuSurfaceStub *surface_stub = surfaces_.Lookup(surface_id);
- if (!surface_stub)
- return NULL;
-
- return surface_stub->surface();
-}
-
void GpuChannel::CreateViewCommandBuffer(
gfx::PluginWindowHandle window,
int32 render_view_id,
@@ -267,7 +259,7 @@ void GpuChannel::OnCreateOffscreenSurface(const gfx::Size& size,
*route_id = MSG_ROUTING_NONE;
#if defined(ENABLE_GPU)
- scoped_refptr<gfx::GLSurface> surface(
+ scoped_ptr<gfx::GLSurface> surface(
gfx::GLSurface::CreateOffscreenGLSurface(size));
if (!surface.get())
return;