summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/share_group.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-08 17:37:12 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-08 17:37:12 +0000
commit0ba5ac7e87bcb17f65bac68d19e2016b6c053131 (patch)
tree21effc9260f4568448da642e8e209ae989e0272d /gpu/command_buffer/client/share_group.cc
parent3859f1434b2add1f9e1e90deaf05834b55dea5fc (diff)
downloadchromium_src-0ba5ac7e87bcb17f65bac68d19e2016b6c053131.zip
chromium_src-0ba5ac7e87bcb17f65bac68d19e2016b6c053131.tar.gz
chromium_src-0ba5ac7e87bcb17f65bac68d19e2016b6c053131.tar.bz2
gpu: Fix more clang warnings about missing virtual and OVERRIDE annotations.
BUG=115047 TBR=apatrick@chromium.org Review URL: https://chromiumcodereview.appspot.com/10905166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155581 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client/share_group.cc')
-rw-r--r--gpu/command_buffer/client/share_group.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/gpu/command_buffer/client/share_group.cc b/gpu/command_buffer/client/share_group.cc
index 927e58d..40bd1ca 100644
--- a/gpu/command_buffer/client/share_group.cc
+++ b/gpu/command_buffer/client/share_group.cc
@@ -22,13 +22,13 @@ class IdHandler : public IdHandlerInterface {
virtual ~IdHandler() { }
// Overridden from IdHandlerInterface.
- virtual void Destroy(GLES2Implementation* /* gl_impl */) {
+ virtual void Destroy(GLES2Implementation* /* gl_impl */) OVERRIDE {
}
// Overridden from IdHandlerInterface.
virtual void MakeIds(
GLES2Implementation* /* gl_impl */,
- GLuint id_offset, GLsizei n, GLuint* ids) {
+ GLuint id_offset, GLsizei n, GLuint* ids) OVERRIDE {
if (id_offset == 0) {
for (GLsizei ii = 0; ii < n; ++ii) {
ids[ii] = id_allocator_.AllocateID();
@@ -44,7 +44,7 @@ class IdHandler : public IdHandlerInterface {
// Overridden from IdHandlerInterface.
virtual bool FreeIds(
GLES2Implementation* gl_impl,
- GLsizei n, const GLuint* ids, DeleteFn delete_fn) {
+ GLsizei n, const GLuint* ids, DeleteFn delete_fn) OVERRIDE {
for (GLsizei ii = 0; ii < n; ++ii) {
id_allocator_.FreeID(ids[ii]);
}
@@ -56,7 +56,7 @@ class IdHandler : public IdHandlerInterface {
}
// Overridden from IdHandlerInterface.
- virtual bool MarkAsUsedForBind(GLuint id) {
+ virtual bool MarkAsUsedForBind(GLuint id) OVERRIDE {
return id == 0 ? true : id_allocator_.MarkAsUsed(id);
}
protected:
@@ -79,17 +79,17 @@ class StrictIdHandler : public IdHandler {
// An id handler for ids that are never reused.
class NonReusedIdHandler : public IdHandlerInterface {
public:
- NonReusedIdHandler() : last_id_(0) { }
- virtual ~NonReusedIdHandler() { }
+ NonReusedIdHandler() : last_id_(0) {}
+ virtual ~NonReusedIdHandler() {}
// Overridden from IdHandlerInterface.
- virtual void Destroy(GLES2Implementation* /* gl_impl */) {
+ virtual void Destroy(GLES2Implementation* /* gl_impl */) OVERRIDE {
}
// Overridden from IdHandlerInterface.
virtual void MakeIds(
GLES2Implementation* /* gl_impl */,
- GLuint id_offset, GLsizei n, GLuint* ids) {
+ GLuint id_offset, GLsizei n, GLuint* ids) OVERRIDE {
for (GLsizei ii = 0; ii < n; ++ii) {
ids[ii] = ++last_id_ + id_offset;
}
@@ -98,14 +98,14 @@ class NonReusedIdHandler : public IdHandlerInterface {
// Overridden from IdHandlerInterface.
virtual bool FreeIds(
GLES2Implementation* gl_impl,
- GLsizei n, const GLuint* ids, DeleteFn delete_fn) {
+ GLsizei n, const GLuint* ids, DeleteFn delete_fn) OVERRIDE {
// Ids are never freed.
(gl_impl->*delete_fn)(n, ids);
return true;
}
// Overridden from IdHandlerInterface.
- virtual bool MarkAsUsedForBind(GLuint /* id */) {
+ virtual bool MarkAsUsedForBind(GLuint /* id */) OVERRIDE {
// This is only used for Shaders and Programs which have no bind.
return false;
}