From c794eda78e9ba3c46b550b433e9fe5a248d40104 Mon Sep 17 00:00:00 2001 From: achaulk Date: Thu, 28 May 2015 18:36:21 -0700 Subject: Adding status to swap buffers completion This will give us more options than completing all swaps successfully, or losing context BUG=476966 TBR=torne - approved interface change Review URL: https://codereview.chromium.org/1084173004 Cr-Commit-Position: refs/heads/master@{#331906} --- ui/gl/gl_surface_mac.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/gl/gl_surface_mac.cc') diff --git a/ui/gl/gl_surface_mac.cc b/ui/gl/gl_surface_mac.cc index 85e9714..0aea62f 100644 --- a/ui/gl/gl_surface_mac.cc +++ b/ui/gl/gl_surface_mac.cc @@ -32,9 +32,9 @@ class GL_EXPORT NoOpGLSurface : public GLSurface { bool Initialize() override { return true; } void Destroy() override {} bool IsOffscreen() override { return true; } - bool SwapBuffers() override { + gfx::SwapResult SwapBuffers() override { NOTREACHED() << "Cannot call SwapBuffers on a NoOpGLSurface."; - return false; + return gfx::SwapResult::SWAP_FAILED; } gfx::Size GetSize() override { return size_; } void* GetHandle() override { return NULL; } -- cgit v1.1