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