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

Unified Diff: src/core/SkBitmapFilter.h

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 months 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 | « src/core/SkBitmapCache.cpp ('k') | src/core/SkBitmapHeap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapFilter.h
diff --git a/src/core/SkBitmapFilter.h b/src/core/SkBitmapFilter.h
index 8ef0f6e1ded91099a988de7147cc1106d7653fce..139e990a10e75d2e7b2f10babc659441eb2865ec 100644
--- a/src/core/SkBitmapFilter.h
+++ b/src/core/SkBitmapFilter.h
@@ -79,7 +79,7 @@ class SkMitchellFilter: public SkBitmapFilter {
: SkBitmapFilter(width), B(b), C(c) {
}
- virtual float evaluate(float x) const SK_OVERRIDE {
+ float evaluate(float x) const SK_OVERRIDE {
x = fabsf(x);
if (x > 2.f) {
return 0;
@@ -102,7 +102,7 @@ class SkGaussianFilter: public SkBitmapFilter {
: SkBitmapFilter(width), alpha(a), expWidth(expf(-alpha * width * width)) {
}
- virtual float evaluate(float x) const SK_OVERRIDE {
+ float evaluate(float x) const SK_OVERRIDE {
return SkTMax(0.f, float(expf(-alpha*x*x) - expWidth));
}
protected:
@@ -115,7 +115,7 @@ class SkTriangleFilter: public SkBitmapFilter {
: SkBitmapFilter(width) {
}
- virtual float evaluate(float x) const SK_OVERRIDE {
+ float evaluate(float x) const SK_OVERRIDE {
return SkTMax(0.f, fWidth - fabsf(x));
}
protected:
@@ -127,7 +127,7 @@ class SkBoxFilter: public SkBitmapFilter {
: SkBitmapFilter(width) {
}
- virtual float evaluate(float x) const SK_OVERRIDE {
+ float evaluate(float x) const SK_OVERRIDE {
return (x >= -fWidth && x < fWidth) ? 1.0f : 0.0f;
}
protected:
@@ -138,7 +138,7 @@ public:
SkHammingFilter(float width=1.f)
: SkBitmapFilter(width) {
}
- virtual float evaluate(float x) const SK_OVERRIDE {
+ float evaluate(float x) const SK_OVERRIDE {
if (x <= -fWidth || x >= fWidth) {
return 0.0f; // Outside of the window.
}
@@ -158,7 +158,7 @@ class SkLanczosFilter: public SkBitmapFilter {
: SkBitmapFilter(width) {
}
- virtual float evaluate(float x) const SK_OVERRIDE {
+ float evaluate(float x) const SK_OVERRIDE {
if (x <= -fWidth || x >= fWidth) {
return 0.0f; // Outside of the window.
}
« no previous file with comments | « src/core/SkBitmapCache.cpp ('k') | src/core/SkBitmapHeap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698