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

Side by Side Diff: content/renderer/gpu/command_buffer_proxy.cc

Issue 8171015: Rename RenderThread to RenderThreadImpl (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « content/renderer/devtools_client.cc ('k') | content/renderer/gpu/gpu_channel_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/gpu/command_buffer_proxy.h" 5 #include "content/renderer/gpu/command_buffer_proxy.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/task.h" 12 #include "base/task.h"
13 #include "content/common/child_thread.h"
13 #include "content/common/gpu/gpu_messages.h" 14 #include "content/common/gpu/gpu_messages.h"
14 #include "content/common/plugin_messages.h" 15 #include "content/common/plugin_messages.h"
15 #include "content/common/view_messages.h" 16 #include "content/common/view_messages.h"
16 #include "content/renderer/gpu/gpu_channel_host.h" 17 #include "content/renderer/gpu/gpu_channel_host.h"
17 #include "content/renderer/plugin_channel_host.h" 18 #include "content/renderer/plugin_channel_host.h"
18 #include "content/renderer/render_thread.h"
19 #include "gpu/command_buffer/common/cmd_buffer_common.h" 19 #include "gpu/command_buffer/common/cmd_buffer_common.h"
20 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
21 21
22 using gpu::Buffer; 22 using gpu::Buffer;
23 23
24 CommandBufferProxy::CommandBufferProxy( 24 CommandBufferProxy::CommandBufferProxy(
25 GpuChannelHost* channel, 25 GpuChannelHost* channel,
26 int route_id) 26 int route_id)
27 : num_entries_(0), 27 : num_entries_(0),
28 channel_(channel), 28 channel_(channel),
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 delete msg; 442 delete msg;
443 return false; 443 return false;
444 } 444 }
445 445
446 void CommandBufferProxy::OnUpdateState(const gpu::CommandBuffer::State& state) { 446 void CommandBufferProxy::OnUpdateState(const gpu::CommandBuffer::State& state) {
447 // Handle wraparound. It works as long as we don't have more than 2B state 447 // Handle wraparound. It works as long as we don't have more than 2B state
448 // updates in flight across which reordering occurs. 448 // updates in flight across which reordering occurs.
449 if (state.generation - last_state_.generation < 0x80000000U) 449 if (state.generation - last_state_.generation < 0x80000000U)
450 last_state_ = state; 450 last_state_ = state;
451 } 451 }
OLDNEW
« no previous file with comments | « content/renderer/devtools_client.cc ('k') | content/renderer/gpu/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698