OLD | NEW |
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/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/task.h" | 11 #include "base/task.h" |
12 #include "content/common/gpu/gpu_messages.h" | 12 #include "content/common/gpu/gpu_messages.h" |
13 #include "content/common/plugin_messages.h" | 13 #include "content/common/plugin_messages.h" |
14 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
15 #include "content/renderer/plugin_channel_host.h" | 15 #include "content/renderer/plugin_channel_host.h" |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 delete msg; | 380 delete msg; |
381 return false; | 381 return false; |
382 } | 382 } |
383 | 383 |
384 void CommandBufferProxy::OnUpdateState(const gpu::CommandBuffer::State& state) { | 384 void CommandBufferProxy::OnUpdateState(const gpu::CommandBuffer::State& state) { |
385 // Handle wraparound. It works as long as we don't have more than 2B state | 385 // Handle wraparound. It works as long as we don't have more than 2B state |
386 // updates in flight across which reordering occurs. | 386 // updates in flight across which reordering occurs. |
387 if (state.generation - last_state_.generation < 0x80000000U) | 387 if (state.generation - last_state_.generation < 0x80000000U) |
388 last_state_ = state; | 388 last_state_ = state; |
389 } | 389 } |
OLD | NEW |