diff options
author | mtklein <mtklein@chromium.org> | 2015-03-25 18:17:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-25 18:17:32 -0700 |
commit | 36352bf5e38f45a70ee4f4fc132a38048d38206d (patch) | |
tree | 24f662dbc4bceca8f2e59521ab41ad2c1cf89ca6 /src/gpu/gl/GrGLNameAllocator.cpp | |
parent | 02fd592c8d190058652bb715fb34feb7a72992e5 (diff) |
C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla}
NOPRESUBMIT=true
BUG=skia:
DOCS_PREVIEW= https://skia.org/?cl=1037793002
Review URL: https://codereview.chromium.org/1037793002
Diffstat (limited to 'src/gpu/gl/GrGLNameAllocator.cpp')
-rw-r--r-- | src/gpu/gl/GrGLNameAllocator.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gpu/gl/GrGLNameAllocator.cpp b/src/gpu/gl/GrGLNameAllocator.cpp index 9d60162f30..94792f1fab 100644 --- a/src/gpu/gl/GrGLNameAllocator.cpp +++ b/src/gpu/gl/GrGLNameAllocator.cpp @@ -133,7 +133,7 @@ public: this->updateStats(); } - SparseNameRange* SK_WARN_UNUSED_RESULT internalAllocate(GrGLuint* outName) SK_OVERRIDE { + SparseNameRange* SK_WARN_UNUSED_RESULT internalAllocate(GrGLuint* outName) override { // Try allocating the range inside fLeft's internal gaps. fLeft.reset(fLeft->internalAllocate(outName)); if (0 != *outName) { @@ -160,7 +160,7 @@ public: return this->takeRef(); } - SparseNameRange* SK_WARN_UNUSED_RESULT removeLeftmostContiguousRange(GrGLuint* removedCount) SK_OVERRIDE { + SparseNameRange* SK_WARN_UNUSED_RESULT removeLeftmostContiguousRange(GrGLuint* removedCount) override { fLeft.reset(fLeft->removeLeftmostContiguousRange(removedCount)); if (NULL == fLeft) { return fRight.detach(); @@ -169,7 +169,7 @@ public: return this->rebalance(); } - GrGLuint appendNames(GrGLuint count) SK_OVERRIDE { + GrGLuint appendNames(GrGLuint count) override { SkASSERT(fEnd + count > fEnd); // Check for integer wrap. GrGLuint name = fRight->appendNames(count); SkASSERT(fRight->end() == fEnd + count); @@ -177,7 +177,7 @@ public: return name; } - GrGLuint prependNames(GrGLuint count) SK_OVERRIDE { + GrGLuint prependNames(GrGLuint count) override { SkASSERT(fFirst > count); // We can't allocate at or below 0. GrGLuint name = fLeft->prependNames(count); SkASSERT(fLeft->first() == fFirst - count); @@ -185,7 +185,7 @@ public: return name; } - SparseNameRange* SK_WARN_UNUSED_RESULT free(GrGLuint name) SK_OVERRIDE { + SparseNameRange* SK_WARN_UNUSED_RESULT free(GrGLuint name) override { if (name < fLeft->end()) { fLeft.reset(fLeft->free(name)); if (NULL == fLeft) { @@ -280,30 +280,30 @@ public: fHeight = 0; } - SparseNameRange* SK_WARN_UNUSED_RESULT internalAllocate(GrGLuint* outName) SK_OVERRIDE { + SparseNameRange* SK_WARN_UNUSED_RESULT internalAllocate(GrGLuint* outName) override { *outName = 0; // No internal gaps, we are contiguous. return this->takeRef(); } - SparseNameRange* SK_WARN_UNUSED_RESULT removeLeftmostContiguousRange(GrGLuint* removedCount) SK_OVERRIDE { + SparseNameRange* SK_WARN_UNUSED_RESULT removeLeftmostContiguousRange(GrGLuint* removedCount) override { *removedCount = fEnd - fFirst; return NULL; } - GrGLuint appendNames(GrGLuint count) SK_OVERRIDE { + GrGLuint appendNames(GrGLuint count) override { SkASSERT(fEnd + count > fEnd); // Check for integer wrap. GrGLuint name = fEnd; fEnd += count; return name; } - GrGLuint prependNames(GrGLuint count) SK_OVERRIDE { + GrGLuint prependNames(GrGLuint count) override { SkASSERT(fFirst > count); // We can't allocate at or below 0. fFirst -= count; return fFirst; } - SparseNameRange* SK_WARN_UNUSED_RESULT free(GrGLuint name) SK_OVERRIDE { + SparseNameRange* SK_WARN_UNUSED_RESULT free(GrGLuint name) override { if (name < fFirst || name >= fEnd) { // Not-allocated names are silently ignored. return this->takeRef(); |