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 #ifndef GPU_COMMAND_BUFFER_SERVICE_TRANSFER_BUFFER_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TRANSFER_BUFFER_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_TRANSFER_BUFFER_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_TRANSFER_BUFFER_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
15 #include "gpu/command_buffer/common/command_buffer_shared.h" | 15 #include "gpu/command_buffer/common/command_buffer_shared.h" |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 | 18 |
19 class GPU_EXPORT TransferBufferManagerInterface { | 19 class GPU_EXPORT TransferBufferManagerInterface { |
20 public: | 20 public: |
21 virtual ~TransferBufferManagerInterface(); | 21 virtual ~TransferBufferManagerInterface(); |
22 | 22 |
23 virtual bool RegisterTransferBuffer(int32 id, | 23 virtual bool RegisterTransferBuffer(int32 id, |
(...skipping 22 matching lines...) Expand all Loading... |
46 typedef base::hash_map<int32, Buffer> BufferMap; | 46 typedef base::hash_map<int32, Buffer> BufferMap; |
47 BufferMap registered_buffers_; | 47 BufferMap registered_buffers_; |
48 size_t shared_memory_bytes_allocated_; | 48 size_t shared_memory_bytes_allocated_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(TransferBufferManager); | 50 DISALLOW_COPY_AND_ASSIGN(TransferBufferManager); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace gpu | 53 } // namespace gpu |
54 | 54 |
55 #endif // GPU_COMMAND_BUFFER_SERVICE_TRANSFER_BUFFER_MANAGER_H_ | 55 #endif // GPU_COMMAND_BUFFER_SERVICE_TRANSFER_BUFFER_MANAGER_H_ |
OLD | NEW |