Index: gpu/command_buffer/service/gpu_scheduler_linux.cc |
=================================================================== |
--- gpu/command_buffer/service/gpu_scheduler_linux.cc (revision 86168) |
+++ gpu/command_buffer/service/gpu_scheduler_linux.cc (working copy) |
@@ -48,14 +48,15 @@ |
// Create a GLContext and attach the surface. |
scoped_ptr<gfx::GLContext> context( |
- gfx::GLContext::CreateGLContext(surface.release(), parent_context)); |
+ gfx::GLContext::CreateGLContext(parent_context, surface.get())); |
if (!context.get()) { |
LOG(ERROR) << "CreateGLContext failed.\n"; |
Destroy(); |
return false; |
} |
- return InitializeCommon(context.release(), |
+ return InitializeCommon(surface.release(), |
+ context.release(), |
size, |
disallowed_extensions, |
allowed_extensions, |