Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2259)

Unified Diff: gpu/command_buffer/common/id_allocator.h

Issue 8486016: Add OVERRIDE to gpu/ and gl/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698