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

Unified Diff: include/effects/SkMatrixImageFilter.h

Issue 1009183002: swith over from SkPaint::FilterLevel to SkFilterQuality (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « include/core/SkPaint.h ('k') | include/effects/SkPictureImageFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkMatrixImageFilter.h
diff --git a/include/effects/SkMatrixImageFilter.h b/include/effects/SkMatrixImageFilter.h
index 7d855b777f6c640e40a66eaa4e44ece818626ff2..d0afdc3bd91360a8aa97b82cba1b7a32e73a867b 100644
--- a/include/effects/SkMatrixImageFilter.h
+++ b/include/effects/SkMatrixImageFilter.h
@@ -29,9 +29,17 @@ public:
*/
static SkMatrixImageFilter* Create(const SkMatrix& transform,
- SkPaint::FilterLevel,
+ SkFilterQuality,
SkImageFilter* input = NULL,
uint32_t uniqueID = 0);
+#ifdef SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM
+ static SkMatrixImageFilter* Create(const SkMatrix& transform,
+ SkPaint::FilterLevel level,
+ SkImageFilter* input = NULL,
+ uint32_t uniqueID = 0) {
+ return Create(transform, SkFilterQuality(level), input, uniqueID);
+ }
+#endif
virtual ~SkMatrixImageFilter();
void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
@@ -41,7 +49,7 @@ public:
protected:
SkMatrixImageFilter(const SkMatrix& transform,
- SkPaint::FilterLevel,
+ SkFilterQuality,
SkImageFilter* input,
uint32_t uniqueID);
void flatten(SkWriteBuffer&) const SK_OVERRIDE;
@@ -53,7 +61,7 @@ protected:
private:
SkMatrix fTransform;
- SkPaint::FilterLevel fFilterLevel;
+ SkFilterQuality fFilterQuality;
typedef SkImageFilter INHERITED;
};
« no previous file with comments | « include/core/SkPaint.h ('k') | include/effects/SkPictureImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698