| Index: gpu/command_buffer/common/id_allocator.h
|
| diff --git a/gpu/command_buffer/common/id_allocator.h b/gpu/command_buffer/common/id_allocator.h
|
| index 56220b225c0f2a2cd0d277c2d5fd8eeadaca57e4..de2d658686fedfdc657c609d88e3bcff06b90332 100644
|
| --- a/gpu/command_buffer/common/id_allocator.h
|
| +++ b/gpu/command_buffer/common/id_allocator.h
|
| @@ -9,6 +9,9 @@
|
|
|
| #include <set>
|
| #include <utility>
|
| +
|
| +#include "base/compiler_specific.h"
|
| +
|
| #include "../common/types.h"
|
|
|
| namespace gpu {
|
| @@ -46,11 +49,11 @@ class IdAllocator : public IdAllocatorInterface {
|
| virtual ~IdAllocator();
|
|
|
| // Implement IdAllocatorInterface.
|
| - virtual ResourceId AllocateID();
|
| - virtual ResourceId AllocateIDAtOrAbove(ResourceId desired_id);
|
| - virtual bool MarkAsUsed(ResourceId id);
|
| - virtual void FreeID(ResourceId id);
|
| - virtual bool InUse(ResourceId id) const;
|
| + virtual ResourceId AllocateID() OVERRIDE;
|
| + virtual ResourceId AllocateIDAtOrAbove(ResourceId desired_id) OVERRIDE;
|
| + virtual bool MarkAsUsed(ResourceId id) OVERRIDE;
|
| + virtual void FreeID(ResourceId id) OVERRIDE;
|
| + virtual bool InUse(ResourceId id) const OVERRIDE;
|
|
|
| private:
|
| // TODO(gman): This would work much better with ranges or a hash table.
|
| @@ -78,11 +81,11 @@ class NonReusedIdAllocator : public IdAllocatorInterface {
|
| virtual ~NonReusedIdAllocator();
|
|
|
| // Implement IdAllocatorInterface.
|
| - virtual ResourceId AllocateID();
|
| - virtual ResourceId AllocateIDAtOrAbove(ResourceId desired_id);
|
| - virtual bool MarkAsUsed(ResourceId id);
|
| - virtual void FreeID(ResourceId id);
|
| - virtual bool InUse(ResourceId id) const;
|
| + virtual ResourceId AllocateID() OVERRIDE;
|
| + virtual ResourceId AllocateIDAtOrAbove(ResourceId desired_id) OVERRIDE;
|
| + virtual bool MarkAsUsed(ResourceId id) OVERRIDE;
|
| + virtual void FreeID(ResourceId id) OVERRIDE;
|
| + virtual bool InUse(ResourceId id) const OVERRIDE;
|
|
|
| private:
|
| ResourceId last_id_;
|
|
|