diff options
Diffstat (limited to 'gpu/command_buffer/client/id_allocator.h')
-rw-r--r-- | gpu/command_buffer/client/id_allocator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/command_buffer/client/id_allocator.h b/gpu/command_buffer/client/id_allocator.h index 2b78f98..2731366 100644 --- a/gpu/command_buffer/client/id_allocator.h +++ b/gpu/command_buffer/client/id_allocator.h @@ -21,19 +21,19 @@ class IdAllocator { IdAllocator(); // Allocates a new resource ID. - gpu::ResourceId AllocateID() { + ResourceId AllocateID() { unsigned int bit = FindFirstFree(); SetBit(bit, true); return bit; } // Frees a resource ID. - void FreeID(gpu::ResourceId id) { + void FreeID(ResourceId id) { SetBit(id, false); } // Checks whether or not a resource ID is in use. - bool InUse(gpu::ResourceId id) { + bool InUse(ResourceId id) { return GetBit(id); } private: |