| 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" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/debug/trace_event.h" | |
| 12 #include "base/process/process_handle.h" | 11 #include "base/process/process_handle.h" |
| 12 #include "base/trace_event/trace_event.h" |
| 13 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 13 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
| 14 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 14 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 15 | 15 |
| 16 using ::base::SharedMemory; | 16 using ::base::SharedMemory; |
| 17 | 17 |
| 18 namespace gpu { | 18 namespace gpu { |
| 19 | 19 |
| 20 TransferBufferManagerInterface::~TransferBufferManagerInterface() { | 20 TransferBufferManagerInterface::~TransferBufferManagerInterface() { |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 BufferMap::iterator it = registered_buffers_.find(id); | 90 BufferMap::iterator it = registered_buffers_.find(id); |
| 91 if (it == registered_buffers_.end()) | 91 if (it == registered_buffers_.end()) |
| 92 return NULL; | 92 return NULL; |
| 93 | 93 |
| 94 return it->second; | 94 return it->second; |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace gpu | 97 } // namespace gpu |
| 98 | 98 |
| OLD | NEW |