Index: ui/gl/gl_surface_wgl.cc |
diff --git a/ui/gl/gl_surface_wgl.cc b/ui/gl/gl_surface_wgl.cc |
index 82e34ecf7f55fd0dbfbcfd216495140ad7523d71..698539fe7ff1ae7936debf3478f2d4e6bc17d12f 100644 |
--- a/ui/gl/gl_surface_wgl.cc |
+++ b/ui/gl/gl_surface_wgl.cc |
@@ -250,7 +250,7 @@ |
return false; |
} |
-gfx::SwapResult NativeViewGLSurfaceWGL::SwapBuffers() { |
+bool NativeViewGLSurfaceWGL::SwapBuffers() { |
TRACE_EVENT2("gpu", "NativeViewGLSurfaceWGL:RealSwapBuffers", |
"width", GetSize().width(), |
"height", GetSize().height()); |
@@ -259,19 +259,18 @@ |
// it as it moves. |
RECT rect; |
if (!GetClientRect(window_, &rect)) |
- return gfx::SwapResult::SWAP_FAILED; |
+ return false; |
if (!MoveWindow(child_window_, |
0, |
0, |
rect.right - rect.left, |
rect.bottom - rect.top, |
FALSE)) { |
- return gfx::SwapResult::SWAP_FAILED; |
+ return false; |
} |
DCHECK(device_context_); |
- return ::SwapBuffers(device_context_) == TRUE ? gfx::SwapResult::SWAP_ACK |
- : gfx::SwapResult::SWAP_FAILED; |
+ return ::SwapBuffers(device_context_) == TRUE; |
} |
gfx::Size NativeViewGLSurfaceWGL::GetSize() { |
@@ -346,9 +345,9 @@ |
return true; |
} |
-gfx::SwapResult PbufferGLSurfaceWGL::SwapBuffers() { |
+bool PbufferGLSurfaceWGL::SwapBuffers() { |
NOTREACHED() << "Attempted to call SwapBuffers on a pbuffer."; |
- return gfx::SwapResult::SWAP_FAILED; |
+ return false; |
} |
gfx::Size PbufferGLSurfaceWGL::GetSize() { |