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

Unified Diff: tests/PaintTest.cpp

Issue 1014533004: SkPaint::FilterLevel -> 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 | « tests/ImageFilterTest.cpp ('k') | tests/SkResourceCacheTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PaintTest.cpp
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp
index bf22de1dafea3157e5477d49023778bfbd72af7c..1fca8dc656fadbaa77b41aec6904b8054eeec91f 100644
--- a/tests/PaintTest.cpp
+++ b/tests/PaintTest.cpp
@@ -116,27 +116,25 @@ DEF_TEST(Paint_cmap, reporter) {
}
// temparary api for bicubic, just be sure we can set/clear it
-DEF_TEST(Paint_filterlevel, reporter) {
+DEF_TEST(Paint_filterQuality, reporter) {
SkPaint p0, p1;
- REPORTER_ASSERT(reporter,
- SkPaint::kNone_FilterLevel == p0.getFilterLevel());
+ REPORTER_ASSERT(reporter, kNone_SkFilterQuality == p0.getFilterQuality());
- static const SkPaint::FilterLevel gLevels[] = {
- SkPaint::kNone_FilterLevel,
- SkPaint::kLow_FilterLevel,
- SkPaint::kMedium_FilterLevel,
- SkPaint::kHigh_FilterLevel
+ static const SkFilterQuality gQualitys[] = {
+ kNone_SkFilterQuality,
+ kLow_SkFilterQuality,
+ kMedium_SkFilterQuality,
+ kHigh_SkFilterQuality
};
- for (size_t i = 0; i < SK_ARRAY_COUNT(gLevels); ++i) {
- p0.setFilterLevel(gLevels[i]);
- REPORTER_ASSERT(reporter, gLevels[i] == p0.getFilterLevel());
+ for (size_t i = 0; i < SK_ARRAY_COUNT(gQualitys); ++i) {
+ p0.setFilterQuality(gQualitys[i]);
+ REPORTER_ASSERT(reporter, gQualitys[i] == p0.getFilterQuality());
p1 = p0;
- REPORTER_ASSERT(reporter, gLevels[i] == p1.getFilterLevel());
+ REPORTER_ASSERT(reporter, gQualitys[i] == p1.getFilterQuality());
p0.reset();
- REPORTER_ASSERT(reporter,
- SkPaint::kNone_FilterLevel == p0.getFilterLevel());
+ REPORTER_ASSERT(reporter, kNone_SkFilterQuality == p0.getFilterQuality());
}
}
@@ -205,11 +203,11 @@ DEF_TEST(Paint_regression_cubic, reporter) {
}
DEF_TEST(Paint_flattening, reporter) {
- const SkPaint::FilterLevel levels[] = {
- SkPaint::kNone_FilterLevel,
- SkPaint::kLow_FilterLevel,
- SkPaint::kMedium_FilterLevel,
- SkPaint::kHigh_FilterLevel,
+ const SkFilterQuality levels[] = {
+ kNone_SkFilterQuality,
+ kLow_SkFilterQuality,
+ kMedium_SkFilterQuality,
+ kHigh_SkFilterQuality,
};
const SkPaint::Hinting hinting[] = {
SkPaint::kNo_Hinting,
@@ -251,7 +249,7 @@ DEF_TEST(Paint_flattening, reporter) {
SkPaint paint;
paint.setFlags(0x1234);
- FOR_SETUP(i, levels, setFilterLevel)
+ FOR_SETUP(i, levels, setFilterQuality)
FOR_SETUP(j, hinting, setHinting)
FOR_SETUP(k, align, setTextAlign)
FOR_SETUP(l, caps, setStrokeCap)
« no previous file with comments | « tests/ImageFilterTest.cpp ('k') | tests/SkResourceCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698