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 "gpu/command_buffer/service/gpu_processor.h" | 5 #include "gpu/command_buffer/service/gpu_processor.h" |
6 | 6 |
7 #include "app/gfx/gl/gl_bindings.h" | |
8 #include "base/callback.h" | 7 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
11 #include "app/gfx/gl/gl_context.h" | |
12 #include "gpu/common/gpu_trace_event.h" | 10 #include "gpu/common/gpu_trace_event.h" |
| 11 #include "ui/gfx/gl/gl_context.h" |
| 12 #include "ui/gfx/gl/gl_bindings.h" |
13 | 13 |
14 using ::base::SharedMemory; | 14 using ::base::SharedMemory; |
15 | 15 |
16 static size_t kNumThrottleFences = 1; | 16 static size_t kNumThrottleFences = 1; |
17 | 17 |
18 namespace gpu { | 18 namespace gpu { |
19 | 19 |
20 GPUProcessor::GPUProcessor(CommandBuffer* command_buffer, | 20 GPUProcessor::GPUProcessor(CommandBuffer* command_buffer, |
21 gles2::ContextGroup* group) | 21 gles2::ContextGroup* group) |
22 : command_buffer_(command_buffer), | 22 : command_buffer_(command_buffer), |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 NewCallback(this, | 247 NewCallback(this, |
248 &GPUProcessor::WillSwapBuffers)); | 248 &GPUProcessor::WillSwapBuffers)); |
249 } | 249 } |
250 | 250 |
251 void GPUProcessor::SetCommandProcessedCallback( | 251 void GPUProcessor::SetCommandProcessedCallback( |
252 Callback0::Type* callback) { | 252 Callback0::Type* callback) { |
253 command_processed_callback_.reset(callback); | 253 command_processed_callback_.reset(callback); |
254 } | 254 } |
255 | 255 |
256 } // namespace gpu | 256 } // namespace gpu |
OLD | NEW |