OLD | NEW |
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 "gpu/command_buffer/service/command_buffer_service.h" | 5 #include "gpu/command_buffer/service/command_buffer_service.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
11 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 11 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
12 #include "gpu/command_buffer/common/command_buffer_shared.h" | 12 #include "gpu/command_buffer/common/command_buffer_shared.h" |
13 #include "gpu/command_buffer/service/transfer_buffer_manager.h" | 13 #include "gpu/command_buffer/service/transfer_buffer_manager.h" |
14 | 14 |
15 using ::base::SharedMemory; | 15 using ::base::SharedMemory; |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 | 18 |
19 CommandBufferService::CommandBufferService( | 19 CommandBufferService::CommandBufferService( |
20 TransferBufferManagerInterface* transfer_buffer_manager) | 20 TransferBufferManagerInterface* transfer_buffer_manager) |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 const GetBufferChangedCallback& callback) { | 185 const GetBufferChangedCallback& callback) { |
186 get_buffer_change_callback_ = callback; | 186 get_buffer_change_callback_ = callback; |
187 } | 187 } |
188 | 188 |
189 void CommandBufferService::SetParseErrorCallback( | 189 void CommandBufferService::SetParseErrorCallback( |
190 const base::Closure& callback) { | 190 const base::Closure& callback) { |
191 parse_error_callback_ = callback; | 191 parse_error_callback_ = callback; |
192 } | 192 } |
193 | 193 |
194 } // namespace gpu | 194 } // namespace gpu |
OLD | NEW |