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} --- content/common/gpu/image_transport_surface_mac.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content/common/gpu/image_transport_surface_mac.mm') diff --git a/content/common/gpu/image_transport_surface_mac.mm b/content/common/gpu/image_transport_surface_mac.mm index 7966d5a..04b6bc3 100644 --- a/content/common/gpu/image_transport_surface_mac.mm +++ b/content/common/gpu/image_transport_surface_mac.mm @@ -28,15 +28,15 @@ class DRTSurfaceOSMesa : public gfx::GLSurfaceOSMesa { : GLSurfaceOSMesa(gfx::OSMesaSurfaceFormatRGBA, gfx::Size(1, 1)) {} // Implement a subset of GLSurface. - bool SwapBuffers() override; + gfx::SwapResult SwapBuffers() override; private: ~DRTSurfaceOSMesa() override {} DISALLOW_COPY_AND_ASSIGN(DRTSurfaceOSMesa); }; -bool DRTSurfaceOSMesa::SwapBuffers() { - return true; +gfx::SwapResult DRTSurfaceOSMesa::SwapBuffers() { + return gfx::SwapResult::SWAP_ACK; } bool g_allow_os_mesa = false; -- cgit v1.1