OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/gpu/client/command_buffer_proxy_impl.h" | 5 #include "content/common/gpu/client/command_buffer_proxy_impl.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 return; | 204 return; |
205 | 205 |
206 last_put_offset_ = put_offset; | 206 last_put_offset_ = put_offset; |
207 | 207 |
208 Send(new GpuCommandBufferMsg_AsyncFlush(route_id_, | 208 Send(new GpuCommandBufferMsg_AsyncFlush(route_id_, |
209 put_offset, | 209 put_offset, |
210 ++flush_count_)); | 210 ++flush_count_)); |
211 } | 211 } |
212 | 212 |
213 void CommandBufferProxyImpl::SetLatencyInfo( | 213 void CommandBufferProxyImpl::SetLatencyInfo( |
214 const cc::LatencyInfo& latency_info) { | 214 const ui::LatencyInfo& latency_info) { |
215 if (last_state_.error != gpu::error::kNoError) | 215 if (last_state_.error != gpu::error::kNoError) |
216 return; | 216 return; |
217 Send(new GpuCommandBufferMsg_SetLatencyInfo(route_id_, latency_info)); | 217 Send(new GpuCommandBufferMsg_SetLatencyInfo(route_id_, latency_info)); |
218 } | 218 } |
219 | 219 |
220 gpu::CommandBuffer::State CommandBufferProxyImpl::FlushSync( | 220 gpu::CommandBuffer::State CommandBufferProxyImpl::FlushSync( |
221 int32 put_offset, | 221 int32 put_offset, |
222 int32 last_known_get) { | 222 int32 last_known_get) { |
223 TRACE_EVENT1("gpu", "CommandBufferProxyImpl::FlushSync", "put_offset", | 223 TRACE_EVENT1("gpu", "CommandBufferProxyImpl::FlushSync", "put_offset", |
224 put_offset); | 224 put_offset); |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 void CommandBufferProxyImpl::SendManagedMemoryStats( | 543 void CommandBufferProxyImpl::SendManagedMemoryStats( |
544 const GpuManagedMemoryStats& stats) { | 544 const GpuManagedMemoryStats& stats) { |
545 if (last_state_.error != gpu::error::kNoError) | 545 if (last_state_.error != gpu::error::kNoError) |
546 return; | 546 return; |
547 | 547 |
548 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, | 548 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, |
549 stats)); | 549 stats)); |
550 } | 550 } |
551 | 551 |
552 } // namespace content | 552 } // namespace content |
OLD | NEW |