| 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..f2d1cbd9aaaa996116060a63d067f4a5ee5fbf5c 100644
|
| --- a/ui/gl/init/gl_factory_ozone.cc
|
| +++ b/ui/gl/init/gl_factory_ozone.cc
|
| @@ -48,7 +48,8 @@ scoped_refptr<GLSurface> CreateDefaultOffscreenGLSurface(
|
| switch (GetGLImplementation()) {
|
| case kGLImplementationOSMesaGL:
|
| return InitializeGLSurface(
|
| - new GLSurfaceOSMesa(GLSurface::SURFACE_OSMESA_BGRA, size));
|
| + new GLSurfaceOSMesa(
|
| + GLSurfaceFormat(GLSurfaceFormat::PIXEL_LAYOUT_BGRA), size));
|
| case kGLImplementationMockGL:
|
| return InitializeGLSurface(new GLSurfaceStub);
|
| default:
|
| @@ -131,9 +132,15 @@ scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface(
|
| GetGLImplementation(), window);
|
| }
|
|
|
| -scoped_refptr<GLSurface> CreateOffscreenGLSurface(const gfx::Size& size) {
|
| +scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat(
|
| + const gfx::Size& size, GLSurfaceFormat format) {
|
| TRACE_EVENT0("gpu", "gl::init::CreateOffscreenGLSurface");
|
|
|
| + if (!format.IsDefault()) {
|
| + NOTREACHED() << "FATAL: Ozone only supports default-format surfaces.";
|
| + return nullptr;
|
| + }
|
| +
|
| if (HasGLOzone())
|
| return GetGLOzone()->CreateOffscreenGLSurface(size);
|
|
|
|
|