aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lazy
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-01-09 10:06:39 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-09 10:06:40 -0800
commit72c9faab45124e08c85f70ca38536914862d947c (patch)
tree611893b84bb33b1592d058ee0f2382f7f86601b8 /src/lazy
parent4490da227f1475fb66af20532c14d6d9febd18b6 (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.h8
-rw-r--r--src/lazy/SkDiscardableMemoryPool.cpp22
-rw-r--r--src/lazy/SkDiscardablePixelRef.h8
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();
}