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 // This file contains the definition of the FencedAllocator class. | 5 // This file contains the definition of the FencedAllocator class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ | 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ |
8 #define GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ | 8 #define GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "../../gpu_export.h" | 12 #include "gpu/command_buffer/common/logging.h" |
13 #include "../common/logging.h" | 13 #include "gpu/command_buffer/common/types.h" |
14 #include "../common/types.h" | 14 #include "gpu/gpu_export.h" |
15 | 15 |
16 namespace gpu { | 16 namespace gpu { |
17 class CommandBufferHelper; | 17 class CommandBufferHelper; |
18 | 18 |
19 // FencedAllocator provides a mechanism to manage allocations within a fixed | 19 // FencedAllocator provides a mechanism to manage allocations within a fixed |
20 // block of memory (storing the book-keeping externally). Furthermore this | 20 // block of memory (storing the book-keeping externally). Furthermore this |
21 // class allows to free data "pending" the passage of a command buffer token, | 21 // class allows to free data "pending" the passage of a command buffer token, |
22 // that is, the memory won't be reused until the command buffer has processed | 22 // that is, the memory won't be reused until the command buffer has processed |
23 // that token. | 23 // that token. |
24 // | 24 // |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 private: | 246 private: |
247 FencedAllocator allocator_; | 247 FencedAllocator allocator_; |
248 void* base_; | 248 void* base_; |
249 DISALLOW_IMPLICIT_CONSTRUCTORS(FencedAllocatorWrapper); | 249 DISALLOW_IMPLICIT_CONSTRUCTORS(FencedAllocatorWrapper); |
250 }; | 250 }; |
251 | 251 |
252 } // namespace gpu | 252 } // namespace gpu |
253 | 253 |
254 #endif // GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ | 254 #endif // GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ |
OLD | NEW |