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 IdAllocator class. | 5 // This file contains the definition of the IdAllocator class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_ID_ALLOCATOR_H_ | 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_ID_ALLOCATOR_H_ |
8 #define GPU_COMMAND_BUFFER_CLIENT_ID_ALLOCATOR_H_ | 8 #define GPU_COMMAND_BUFFER_CLIENT_ID_ALLOCATOR_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 | 14 |
15 #include "../../gpu_export.h" | 15 #include "../../gpu_export.h" |
16 #include "../client/hash_tables.h" | |
bajones
2012/11/26 18:01:06
It's not clear to me what this was required for.
greggman
2012/11/28 08:18:57
Done.
| |
16 #include "../common/types.h" | 17 #include "../common/types.h" |
17 | 18 |
18 namespace gpu { | 19 namespace gpu { |
19 | 20 |
20 // A resource ID, key to the resource maps. | 21 // A resource ID, key to the resource maps. |
21 typedef uint32 ResourceId; | 22 typedef uint32 ResourceId; |
22 // Invalid resource ID. | 23 // Invalid resource ID. |
23 static const ResourceId kInvalidResource = 0u; | 24 static const ResourceId kInvalidResource = 0u; |
24 | 25 |
25 class GPU_EXPORT IdAllocatorInterface { | 26 class GPU_EXPORT IdAllocatorInterface { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 | 91 |
91 private: | 92 private: |
92 ResourceId last_id_; | 93 ResourceId last_id_; |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(NonReusedIdAllocator); | 95 DISALLOW_COPY_AND_ASSIGN(NonReusedIdAllocator); |
95 }; | 96 }; |
96 | 97 |
97 } // namespace gpu | 98 } // namespace gpu |
98 | 99 |
99 #endif // GPU_COMMAND_BUFFER_CLIENT_ID_ALLOCATOR_H_ | 100 #endif // GPU_COMMAND_BUFFER_CLIENT_ID_ALLOCATOR_H_ |
OLD | NEW |