| Index: content/common/gpu/client/command_buffer_proxy_impl.cc
|
| diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| index 856ef7ebe4c20c11f1d111836364bd9fa0032610..48a67f8f1c7dab578ffd85ed40fc2e7bc8122798 100644
|
| --- a/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| +++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| @@ -58,6 +58,8 @@ bool CommandBufferProxyImpl::OnMessageReceived(const IPC::Message& message) {
|
| OnSetMemoryAllocation);
|
| IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SignalSyncPointAck,
|
| OnSignalSyncPointAck);
|
| + IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetLatencyInfo,
|
| + OnSetLatencyInfo);
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
|
|
| @@ -197,6 +199,22 @@ void CommandBufferProxyImpl::Flush(int32 put_offset) {
|
| ++flush_count_));
|
| }
|
|
|
| +void CommandBufferProxyImpl::SetLatencyInfo(
|
| + const cc::LatencyInfo& latency_info) {
|
| + Send(new GpuCommandBufferMsg_SetLatencyInfo(route_id_, latency_info));
|
| +}
|
| +
|
| +void CommandBufferProxyImpl::SetLatencyInfoCallback(
|
| + const GpuLatencyInfoCallback& callback) {
|
| + latency_info_callback_ = callback;
|
| +}
|
| +
|
| +void CommandBufferProxyImpl::OnSetLatencyInfo(
|
| + const cc::LatencyInfo& latency_info) {
|
| + if (!latency_info_callback_.is_null())
|
| + latency_info_callback_.Run(latency_info);
|
| +}
|
| +
|
| gpu::CommandBuffer::State CommandBufferProxyImpl::FlushSync(
|
| int32 put_offset,
|
| int32 last_known_get) {
|
|
|