| Index: content/common/gpu/client/command_buffer_proxy_impl.h
|
| diff --git a/content/common/gpu/client/command_buffer_proxy_impl.h b/content/common/gpu/client/command_buffer_proxy_impl.h
|
| index dd08222957ab24724e62189a252f8311c4205894..9c2bcdbd483958ee292f37e2f908891d3c57e948 100644
|
| --- a/content/common/gpu/client/command_buffer_proxy_impl.h
|
| +++ b/content/common/gpu/client/command_buffer_proxy_impl.h
|
| @@ -130,7 +130,10 @@ class CommandBufferProxyImpl
|
| void SetOnConsoleMessageCallback(
|
| const GpuConsoleMessageCallback& callback);
|
|
|
| - void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
|
| + typedef base::Callback<void(const std::vector<ui::LatencyInfo>& latency_info)>
|
| + SwapBuffersCompletionCallback;
|
| + void SetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info,
|
| + const SwapBuffersCompletionCallback& callback);
|
|
|
| // TODO(apatrick): this is a temporary optimization while skia is calling
|
| // ContentGLContext::MakeCurrent prior to every GL call. It saves returning 6
|
| @@ -161,6 +164,7 @@ class CommandBufferProxyImpl
|
| void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message);
|
| void OnSetMemoryAllocation(const gpu::MemoryAllocation& allocation);
|
| void OnSignalSyncPointAck(uint32 id);
|
| + void OnSwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info);
|
|
|
| // Try to read an updated copy of the state from shared memory.
|
| void TryUpdateState();
|
| @@ -201,6 +205,8 @@ class CommandBufferProxyImpl
|
|
|
| std::vector<ui::LatencyInfo> latency_info_;
|
|
|
| + SwapBuffersCompletionCallback swap_buffers_completion_callback_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
|
| };
|
|
|
|
|