| Index: ui/gl/gl_surface_x11.cc
|
| diff --git a/ui/gl/gl_surface_x11.cc b/ui/gl/gl_surface_x11.cc
|
| index a012b1614b240df1a43b2db3fb31ddf130b704a6..47e416c12e48c307ed3056692ff27497e5477795 100644
|
| --- a/ui/gl/gl_surface_x11.cc
|
| +++ b/ui/gl/gl_surface_x11.cc
|
| @@ -303,13 +303,13 @@ scoped_refptr<GLSurface> GLSurface::CreateViewGLSurface(
|
| }
|
|
|
| scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface(
|
| - const gfx::Size& size, GLSurface::Format format) {
|
| + const gfx::Size& size) {
|
| TRACE_EVENT0("gpu", "GLSurface::CreateOffscreenGLSurface");
|
| switch (GetGLImplementation()) {
|
| case kGLImplementationOSMesaGL: {
|
| scoped_refptr<GLSurface> surface(
|
| new GLSurfaceOSMesa(OSMesaSurfaceFormatRGBA, size));
|
| - if (!surface->Initialize(format))
|
| + if (!surface->Initialize())
|
| return NULL;
|
|
|
| return surface;
|
| @@ -317,14 +317,14 @@ scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface(
|
| case kGLImplementationDesktopGL: {
|
| scoped_refptr<GLSurface> surface(
|
| new UnmappedNativeViewGLSurfaceGLX(size));
|
| - if (!surface->Initialize(format))
|
| + if (!surface->Initialize())
|
| return NULL;
|
|
|
| return surface;
|
| }
|
| case kGLImplementationEGLGLES2: {
|
| scoped_refptr<GLSurface> surface(new PbufferGLSurfaceEGL(size));
|
| - if (!surface->Initialize(format))
|
| + if (!surface->Initialize())
|
| return NULL;
|
|
|
| return surface;
|
|
|