Index: ui/gl/gl_surface_glx.cc |
diff --git a/ui/gl/gl_surface_glx.cc b/ui/gl/gl_surface_glx.cc |
index b021a4268387e200bad1af7968d2cb24f37c2979..0602dfabe0c675752f3c9b373a80948b8cb3462e 100644 |
--- a/ui/gl/gl_surface_glx.cc |
+++ b/ui/gl/gl_surface_glx.cc |
@@ -540,13 +540,13 @@ |
return false; |
} |
-gfx::SwapResult NativeViewGLSurfaceGLX::SwapBuffers() { |
+bool NativeViewGLSurfaceGLX::SwapBuffers() { |
TRACE_EVENT2("gpu", "NativeViewGLSurfaceGLX:RealSwapBuffers", |
"width", GetSize().width(), |
"height", GetSize().height()); |
glXSwapBuffers(g_display, GetDrawableHandle()); |
- return gfx::SwapResult::SWAP_ACK; |
+ return true; |
} |
gfx::Size NativeViewGLSurfaceGLX::GetSize() { |
@@ -567,13 +567,11 @@ |
return config_; |
} |
-gfx::SwapResult NativeViewGLSurfaceGLX::PostSubBuffer(int x, |
- int y, |
- int width, |
- int height) { |
+bool NativeViewGLSurfaceGLX::PostSubBuffer( |
+ int x, int y, int width, int height) { |
DCHECK(gfx::g_driver_glx.ext.b_GLX_MESA_copy_sub_buffer); |
glXCopySubBufferMESA(g_display, GetDrawableHandle(), x, y, width, height); |
- return gfx::SwapResult::SWAP_ACK; |
+ return true; |
} |
VSyncProvider* NativeViewGLSurfaceGLX::GetVSyncProvider() { |
@@ -619,9 +617,9 @@ |
return true; |
} |
-gfx::SwapResult UnmappedNativeViewGLSurfaceGLX::SwapBuffers() { |
+bool UnmappedNativeViewGLSurfaceGLX::SwapBuffers() { |
NOTREACHED() << "Attempted to call SwapBuffers on an unmapped window."; |
- return gfx::SwapResult::SWAP_FAILED; |
+ return false; |
} |
gfx::Size UnmappedNativeViewGLSurfaceGLX::GetSize() { |