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..fc0d9d4e9d3541510240773376de2a7072cbdf18 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::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::SWAP_ACK; |
+} |
GLSurfaceOSMesaHeadless::GLSurfaceOSMesaHeadless() |
: GLSurfaceOSMesa(OSMesaSurfaceFormatBGRA, gfx::Size(1, 1)) { |