diff options
author | mtklein <mtklein@chromium.org> | 2015-01-09 10:06:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-09 10:06:40 -0800 |
commit | 72c9faab45124e08c85f70ca38536914862d947c (patch) | |
tree | 611893b84bb33b1592d058ee0f2382f7f86601b8 /src/lazy | |
parent | 4490da227f1475fb66af20532c14d6d9febd18b6 (diff) |
Fix up all the easy virtual ... SK_OVERRIDE cases.
This fixes every case where virtual and SK_OVERRIDE were on the same line,
which should be the bulk of cases. We'll have to manually clean up the rest
over time unless I level up in regexes.
for f in (find . -type f); perl -p -i -e 's/virtual (.*)SK_OVERRIDE/\1SK_OVERRIDE/g' $f; end
BUG=skia:
Review URL: https://codereview.chromium.org/806653007
Diffstat (limited to 'src/lazy')
-rw-r--r-- | src/lazy/SkCachingPixelRef.h | 8 | ||||
-rw-r--r-- | src/lazy/SkDiscardableMemoryPool.cpp | 22 | ||||
-rw-r--r-- | src/lazy/SkDiscardablePixelRef.h | 8 |
3 files changed, 19 insertions, 19 deletions
diff --git a/src/lazy/SkCachingPixelRef.h b/src/lazy/SkCachingPixelRef.h index 306f714169..a46df14496 100644 --- a/src/lazy/SkCachingPixelRef.h +++ b/src/lazy/SkCachingPixelRef.h @@ -42,11 +42,11 @@ public: protected: virtual ~SkCachingPixelRef(); - virtual bool onNewLockPixels(LockRec*) SK_OVERRIDE; - virtual void onUnlockPixels() SK_OVERRIDE; - virtual bool onLockPixelsAreWritable() const SK_OVERRIDE { return false; } + bool onNewLockPixels(LockRec*) SK_OVERRIDE; + void onUnlockPixels() SK_OVERRIDE; + bool onLockPixelsAreWritable() const SK_OVERRIDE { return false; } - virtual SkData* onRefEncodedData() SK_OVERRIDE { + SkData* onRefEncodedData() SK_OVERRIDE { return fImageGenerator->refEncodedData(); } diff --git a/src/lazy/SkDiscardableMemoryPool.cpp b/src/lazy/SkDiscardableMemoryPool.cpp index 96d6046f3f..2da8335ff8 100644 --- a/src/lazy/SkDiscardableMemoryPool.cpp +++ b/src/lazy/SkDiscardableMemoryPool.cpp @@ -32,19 +32,19 @@ public: DiscardableMemoryPool(size_t budget, SkBaseMutex* mutex = NULL); virtual ~DiscardableMemoryPool(); - virtual SkDiscardableMemory* create(size_t bytes) SK_OVERRIDE; + SkDiscardableMemory* create(size_t bytes) SK_OVERRIDE; - virtual size_t getRAMUsed() SK_OVERRIDE; - virtual void setRAMBudget(size_t budget) SK_OVERRIDE; - virtual size_t getRAMBudget() SK_OVERRIDE { return fBudget; } + size_t getRAMUsed() SK_OVERRIDE; + void setRAMBudget(size_t budget) SK_OVERRIDE; + size_t getRAMBudget() SK_OVERRIDE { return fBudget; } /** purges all unlocked DMs */ - virtual void dumpPool() SK_OVERRIDE; + void dumpPool() SK_OVERRIDE; #if SK_LAZY_CACHE_STATS // Defined in SkDiscardableMemoryPool.h - virtual int getCacheHits() SK_OVERRIDE { return fCacheHits; } - virtual int getCacheMisses() SK_OVERRIDE { return fCacheMisses; } - virtual void resetCacheHitsAndMisses() SK_OVERRIDE { + int getCacheHits() SK_OVERRIDE { return fCacheHits; } + int getCacheMisses() SK_OVERRIDE { return fCacheMisses; } + void resetCacheHitsAndMisses() SK_OVERRIDE { fCacheHits = fCacheMisses = 0; } int fCacheHits; @@ -80,9 +80,9 @@ public: PoolDiscardableMemory(DiscardableMemoryPool* pool, void* pointer, size_t bytes); virtual ~PoolDiscardableMemory(); - virtual bool lock() SK_OVERRIDE; - virtual void* data() SK_OVERRIDE; - virtual void unlock() SK_OVERRIDE; + bool lock() SK_OVERRIDE; + void* data() SK_OVERRIDE; + void unlock() SK_OVERRIDE; friend class DiscardableMemoryPool; private: SK_DECLARE_INTERNAL_LLIST_INTERFACE(PoolDiscardableMemory); diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h index 142c8a4539..448f0ab24b 100644 --- a/src/lazy/SkDiscardablePixelRef.h +++ b/src/lazy/SkDiscardablePixelRef.h @@ -25,11 +25,11 @@ public: protected: ~SkDiscardablePixelRef(); - virtual bool onNewLockPixels(LockRec*) SK_OVERRIDE; - virtual void onUnlockPixels() SK_OVERRIDE; - virtual bool onLockPixelsAreWritable() const SK_OVERRIDE { return false; } + bool onNewLockPixels(LockRec*) SK_OVERRIDE; + void onUnlockPixels() SK_OVERRIDE; + bool onLockPixelsAreWritable() const SK_OVERRIDE { return false; } - virtual SkData* onRefEncodedData() SK_OVERRIDE { + SkData* onRefEncodedData() SK_OVERRIDE { return fGenerator->refEncodedData(); } |