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

Unified Diff: gm/matriximagefilter.cpp

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 | « gm/imageresizetiled.cpp ('k') | gm/mipmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/matriximagefilter.cpp
diff --git a/gm/matriximagefilter.cpp b/gm/matriximagefilter.cpp
index 59c5106b7a3d0983128a986cfb569eff3fb8ec9c..eef2b451fccff197efe2a086f91685ce2383c977 100644
--- a/gm/matriximagefilter.cpp
+++ b/gm/matriximagefilter.cpp
@@ -23,9 +23,9 @@ protected:
}
void draw(SkCanvas* canvas, const SkRect& rect, const SkBitmap& bitmap,
- const SkMatrix& matrix, SkPaint::FilterLevel filterLevel) {
+ const SkMatrix& matrix, SkFilterQuality filter) {
SkAutoTUnref<SkImageFilter> imageFilter(
- SkMatrixImageFilter::Create(matrix, filterLevel));
+ SkMatrixImageFilter::Create(matrix, filter));
SkPaint paint;
paint.setImageFilter(imageFilter.get());
canvas->saveLayer(&rect, &paint);
@@ -68,18 +68,18 @@ protected:
SkRect srcRect = SkRect::MakeWH(96, 96);
canvas->translate(margin, margin);
- draw(canvas, srcRect, checkerboard, matrix, SkPaint::kNone_FilterLevel);
+ draw(canvas, srcRect, checkerboard, matrix, kNone_SkFilterQuality);
canvas->translate(srcRect.width() + margin, 0);
- draw(canvas, srcRect, checkerboard, matrix, SkPaint::kLow_FilterLevel);
+ draw(canvas, srcRect, checkerboard, matrix, kLow_SkFilterQuality);
#if 0
// This may be causing Mac 10.6 to barf.
canvas->translate(srcRect.width() + margin, 0);
- draw(canvas, srcRect, checkerboard, matrix, SkPaint::kMedium_FilterLevel);
+ draw(canvas, srcRect, checkerboard, matrix, kMedium_SkFilterQuality);
canvas->translate(srcRect.width() + margin, 0);
- draw(canvas, srcRect, checkerboard, matrix, SkPaint::kHigh_FilterLevel);
+ draw(canvas, srcRect, checkerboard, matrix, kHigh_SkFilterQuality);
#endif
}
« no previous file with comments | « gm/imageresizetiled.cpp ('k') | gm/mipmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698