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/transfer_buffer_manager.h" | 5 #include "gpu/command_buffer/service/transfer_buffer_manager.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
| 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" |
9 #include "base/process_util.h" | 11 #include "base/process_util.h" |
10 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
11 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 13 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
12 | 14 |
13 using ::base::SharedMemory; | 15 using ::base::SharedMemory; |
14 | 16 |
15 namespace gpu { | 17 namespace gpu { |
16 | 18 |
17 TransferBufferManagerInterface::~TransferBufferManagerInterface() { | 19 TransferBufferManagerInterface::~TransferBufferManagerInterface() { |
18 } | 20 } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 106 |
105 BufferMap::iterator it = registered_buffers_.find(id); | 107 BufferMap::iterator it = registered_buffers_.find(id); |
106 if (it == registered_buffers_.end()) | 108 if (it == registered_buffers_.end()) |
107 return Buffer(); | 109 return Buffer(); |
108 | 110 |
109 return it->second; | 111 return it->second; |
110 } | 112 } |
111 | 113 |
112 } // namespace gpu | 114 } // namespace gpu |
113 | 115 |
OLD | NEW |