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/gpu_command_buffer_stub.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content/common/gpu/gpu_command_buffer_stub.h') diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h index c9e215c..24ba37a 100644 --- a/content/common/gpu/gpu_command_buffer_stub.h +++ b/content/common/gpu/gpu_command_buffer_stub.h @@ -27,6 +27,7 @@ #include "ui/gfx/geometry/size.h" #include "ui/gfx/gpu_memory_buffer.h" #include "ui/gfx/native_widget_types.h" +#include "ui/gfx/swap_result.h" #include "ui/gl/gl_surface.h" #include "ui/gl/gpu_preference.h" #include "url/gurl.h" @@ -148,7 +149,8 @@ class GpuCommandBufferStub uint64 GetMemoryUsage() const; void SendSwapBuffersCompleted( - const std::vector& latency_info); + const std::vector& latency_info, + gfx::SwapResult result); void SendUpdateVSyncParameters(base::TimeTicks timebase, base::TimeDelta interval); -- cgit v1.1