| Index: ui/gl/gl_surface_osmesa.cc
|
| diff --git a/ui/gl/gl_surface_osmesa.cc b/ui/gl/gl_surface_osmesa.cc
|
| index 00acc95b29c0760d4fcead57edf8fe6e6f5802ed..7f1b1ad881d0bc1b6b2ce5a99a0bf6e80188ae89 100644
|
| --- a/ui/gl/gl_surface_osmesa.cc
|
| +++ b/ui/gl/gl_surface_osmesa.cc
|
| @@ -84,9 +84,9 @@
|
| return true;
|
| }
|
|
|
| -gfx::SwapResult GLSurfaceOSMesa::SwapBuffers() {
|
| +bool GLSurfaceOSMesa::SwapBuffers() {
|
| NOTREACHED() << "Should not call SwapBuffers on an GLSurfaceOSMesa.";
|
| - return gfx::SwapResult::SWAP_FAILED;
|
| + return false;
|
| }
|
|
|
| gfx::Size GLSurfaceOSMesa::GetSize() {
|
| @@ -107,9 +107,7 @@
|
|
|
| bool GLSurfaceOSMesaHeadless::IsOffscreen() { return false; }
|
|
|
| -gfx::SwapResult GLSurfaceOSMesaHeadless::SwapBuffers() {
|
| - return gfx::SwapResult::SWAP_ACK;
|
| -}
|
| +bool GLSurfaceOSMesaHeadless::SwapBuffers() { return true; }
|
|
|
| GLSurfaceOSMesaHeadless::GLSurfaceOSMesaHeadless()
|
| : GLSurfaceOSMesa(OSMesaSurfaceFormatBGRA, gfx::Size(1, 1)) {
|
|
|