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_CLIENT_MAPPED_MEMORY_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_MAPPED_MEMORY_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_MAPPED_MEMORY_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_MAPPED_MEMORY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "../../gpu_export.h" | 10 #include "gpu/command_buffer/client/fenced_allocator.h" |
11 #include "../common/types.h" | 11 #include "gpu/command_buffer/common/buffer.h" |
12 #include "../client/fenced_allocator.h" | 12 #include "gpu/command_buffer/common/types.h" |
13 #include "../common/buffer.h" | 13 #include "gpu/gpu_export.h" |
14 | 14 |
15 namespace gpu { | 15 namespace gpu { |
16 | 16 |
17 class CommandBufferHelper; | 17 class CommandBufferHelper; |
18 | 18 |
19 // Manages a shared memory segment. | 19 // Manages a shared memory segment. |
20 class GPU_EXPORT MemoryChunk { | 20 class GPU_EXPORT MemoryChunk { |
21 public: | 21 public: |
22 MemoryChunk(int32 shm_id, gpu::Buffer shm, CommandBufferHelper* helper); | 22 MemoryChunk(int32 shm_id, gpu::Buffer shm, CommandBufferHelper* helper); |
23 | 23 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 CommandBufferHelper* helper_; | 159 CommandBufferHelper* helper_; |
160 MemoryChunkVector chunks_; | 160 MemoryChunkVector chunks_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(MappedMemoryManager); | 162 DISALLOW_COPY_AND_ASSIGN(MappedMemoryManager); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace gpu | 165 } // namespace gpu |
166 | 166 |
167 #endif // GPU_COMMAND_BUFFER_CLIENT_MAPPED_MEMORY_H_ | 167 #endif // GPU_COMMAND_BUFFER_CLIENT_MAPPED_MEMORY_H_ |
168 | 168 |
OLD | NEW |