Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.cc

Issue 14999012: Move cc/debug/latency_info to ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 return; 205 return;
206 206
207 last_put_offset_ = put_offset; 207 last_put_offset_ = put_offset;
208 208
209 Send(new GpuCommandBufferMsg_AsyncFlush(route_id_, 209 Send(new GpuCommandBufferMsg_AsyncFlush(route_id_,
210 put_offset, 210 put_offset,
211 ++flush_count_)); 211 ++flush_count_));
212 } 212 }
213 213
214 void CommandBufferProxyImpl::SetLatencyInfo( 214 void CommandBufferProxyImpl::SetLatencyInfo(
215 const cc::LatencyInfo& latency_info) { 215 const ui::LatencyInfo& latency_info) {
216 if (last_state_.error != gpu::error::kNoError) 216 if (last_state_.error != gpu::error::kNoError)
217 return; 217 return;
218 Send(new GpuCommandBufferMsg_SetLatencyInfo(route_id_, latency_info)); 218 Send(new GpuCommandBufferMsg_SetLatencyInfo(route_id_, latency_info));
219 } 219 }
220 220
221 gpu::CommandBuffer::State CommandBufferProxyImpl::FlushSync( 221 gpu::CommandBuffer::State CommandBufferProxyImpl::FlushSync(
222 int32 put_offset, 222 int32 put_offset,
223 int32 last_known_get) { 223 int32 last_known_get) {
224 TRACE_EVENT1("gpu", "CommandBufferProxyImpl::FlushSync", "put_offset", 224 TRACE_EVENT1("gpu", "CommandBufferProxyImpl::FlushSync", "put_offset",
225 put_offset); 225 put_offset);
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 void CommandBufferProxyImpl::SendManagedMemoryStats( 541 void CommandBufferProxyImpl::SendManagedMemoryStats(
542 const GpuManagedMemoryStats& stats) { 542 const GpuManagedMemoryStats& stats) {
543 if (last_state_.error != gpu::error::kNoError) 543 if (last_state_.error != gpu::error::kNoError)
544 return; 544 return;
545 545
546 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, 546 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_,
547 stats)); 547 stats));
548 } 548 }
549 549
550 } // namespace content 550 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698