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

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

Issue 9340012: Move gpu client files to content_common, in content/common/gpu/client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unneeded enums Created 8 years, 10 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/renderer/gpu/command_buffer_proxy.h" 5 #include "content/common/gpu/client/command_buffer_proxy.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"
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "content/common/child_process_messages.h" 13 #include "content/common/child_process_messages.h"
14 #include "content/common/child_thread.h" 14 #include "content/common/child_thread.h"
15 #include "content/common/gpu/client/gpu_channel_host.h"
15 #include "content/common/gpu/gpu_messages.h" 16 #include "content/common/gpu/gpu_messages.h"
16 #include "content/common/plugin_messages.h" 17 #include "content/common/plugin_messages.h"
17 #include "content/common/view_messages.h" 18 #include "content/common/view_messages.h"
18 #include "content/renderer/gpu/gpu_channel_host.h"
19 #include "content/renderer/plugin_channel_host.h"
20 #include "gpu/command_buffer/common/cmd_buffer_common.h" 19 #include "gpu/command_buffer/common/cmd_buffer_common.h"
21 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
22 21
23 using gpu::Buffer; 22 using gpu::Buffer;
24 23
25 CommandBufferProxy::CommandBufferProxy( 24 CommandBufferProxy::CommandBufferProxy(
26 GpuChannelHost* channel, 25 GpuChannelHost* channel,
27 int route_id) 26 int route_id)
28 : channel_(channel), 27 : channel_(channel),
29 route_id_(route_id), 28 route_id_(route_id),
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 delete msg; 403 delete msg;
405 return false; 404 return false;
406 } 405 }
407 406
408 void CommandBufferProxy::OnUpdateState(const gpu::CommandBuffer::State& state) { 407 void CommandBufferProxy::OnUpdateState(const gpu::CommandBuffer::State& state) {
409 // Handle wraparound. It works as long as we don't have more than 2B state 408 // Handle wraparound. It works as long as we don't have more than 2B state
410 // updates in flight across which reordering occurs. 409 // updates in flight across which reordering occurs.
411 if (state.generation - last_state_.generation < 0x80000000U) 410 if (state.generation - last_state_.generation < 0x80000000U)
412 last_state_ = state; 411 last_state_ = state;
413 } 412 }
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy.h ('k') | content/common/gpu/client/content_gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698