Index: ui/gl/init/gl_factory_ozone.cc |
diff --git a/ui/gl/init/gl_factory_ozone.cc b/ui/gl/init/gl_factory_ozone.cc |
index ef3cb9a0872f885d0271a606d7725faa68368c56..af7a40dce35935456b021ccee6868939cad459ad 100644 |
--- a/ui/gl/init/gl_factory_ozone.cc |
+++ b/ui/gl/init/gl_factory_ozone.cc |
@@ -80,12 +80,12 @@ |
scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group, |
GLSurface* compatible_surface, |
- const GLContextAttribs& attribs) { |
+ GpuPreference gpu_preference) { |
TRACE_EVENT0("gpu", "gl::init::CreateGLContext"); |
if (HasGLOzone()) { |
return GetGLOzone()->CreateGLContext(share_group, compatible_surface, |
- attribs); |
+ gpu_preference); |
} |
switch (GetGLImplementation()) { |
@@ -93,10 +93,10 @@ |
return scoped_refptr<GLContext>(new GLContextStub(share_group)); |
case kGLImplementationOSMesaGL: |
return InitializeGLContext(new GLContextOSMesa(share_group), |
- compatible_surface, attribs); |
+ compatible_surface, gpu_preference); |
case kGLImplementationEGLGLES2: |
return InitializeGLContext(new GLContextEGL(share_group), |
- compatible_surface, attribs); |
+ compatible_surface, gpu_preference); |
default: |
NOTREACHED(); |
} |