Index: content/renderer/gpu/renderer_gl_context.cc |
=================================================================== |
--- content/renderer/gpu/renderer_gl_context.cc (revision 89036) |
+++ content/renderer/gpu/renderer_gl_context.cc (working copy) |
@@ -155,7 +155,6 @@ |
RendererGLContext* RendererGLContext::CreateViewContext( |
GpuChannelHost* channel, |
- gfx::PluginWindowHandle render_surface, |
int render_view_id, |
const char* allowed_extensions, |
const int32* attrib_list, |
@@ -164,7 +163,6 @@ |
scoped_ptr<RendererGLContext> context(new RendererGLContext(channel, NULL)); |
if (!context->Initialize( |
true, |
- render_surface, |
render_view_id, |
gfx::Size(), |
allowed_extensions, |
@@ -197,7 +195,6 @@ |
scoped_ptr<RendererGLContext> context(new RendererGLContext(channel, parent)); |
if (!context->Initialize( |
false, |
- gfx::kNullPluginWindow, |
0, |
size, |
allowed_extensions, |
@@ -361,7 +358,6 @@ |
} |
bool RendererGLContext::Initialize(bool onscreen, |
- gfx::PluginWindowHandle render_surface, |
int render_view_id, |
const gfx::Size& size, |
const char* allowed_extensions, |
@@ -416,17 +412,11 @@ |
// Create a proxy to a command buffer in the GPU process. |
if (onscreen) { |
- if (render_surface == gfx::kNullPluginWindow) { |
- LOG(ERROR) << "Invalid surface handle for onscreen context."; |
- command_buffer_ = NULL; |
- } else { |
- command_buffer_ = channel_->CreateViewCommandBuffer( |
- render_surface, |
- render_view_id, |
- allowed_extensions, |
- attribs, |
- active_url); |
- } |
+ command_buffer_ = channel_->CreateViewCommandBuffer( |
+ render_view_id, |
+ allowed_extensions, |
+ attribs, |
+ active_url); |
} else { |
CommandBufferProxy* parent_command_buffer = |
parent_.get() ? parent_->command_buffer_ : NULL; |