| 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 64474be06d3b517492b3626acbed47383d09c5b1..1ff5d0d138298e48378ff640aba1d544902c99c7 100644
|
| --- a/content/common/gpu/client/command_buffer_proxy_impl.h
|
| +++ b/content/common/gpu/client/command_buffer_proxy_impl.h
|
| @@ -131,6 +131,10 @@ class CommandBufferProxyImpl
|
| 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 SetSwapBuffersCompletionCallback(
|
| + 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 +165,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 +206,8 @@ class CommandBufferProxyImpl
|
|
|
| std::vector<ui::LatencyInfo> latency_info_;
|
|
|
| + SwapBuffersCompletionCallback swap_buffers_completion_callback_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
|
| };
|
|
|
|
|