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

Unified Diff: Source/platform/graphics/LoggingCanvas.cpp

Issue 1013803002: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
Index: Source/platform/graphics/LoggingCanvas.cpp
diff --git a/Source/platform/graphics/LoggingCanvas.cpp b/Source/platform/graphics/LoggingCanvas.cpp
index 22f1613f62e3645435c72ec7c3f6ffdcc78380a9..d44c4cab21e1e52e501d94a7cd3a94447f7af914 100644
--- a/Source/platform/graphics/LoggingCanvas.cpp
+++ b/Source/platform/graphics/LoggingCanvas.cpp
@@ -662,13 +662,13 @@ String LoggingCanvas::stringForSkPaintFlags(const SkPaint& paint)
return flagsString;
}
-String LoggingCanvas::filterLevelName(SkPaint::FilterLevel filterLevel)
+String LoggingCanvas::filterQualityName(SkFilterQuality filterQuality)
{
- switch (filterLevel) {
- case SkPaint::kNone_FilterLevel: return "None";
- case SkPaint::kLow_FilterLevel: return "Low";
- case SkPaint::kMedium_FilterLevel: return "Medium";
- case SkPaint::kHigh_FilterLevel: return "High";
+ switch (filterQuality) {
+ case kNone_SkFilterQuality: return "None";
+ case kLow_SkFilterQuality: return "Low";
+ case kMedium_SkFilterQuality: return "Medium";
+ case kHigh_SkFilterQuality: return "High";
default:
ASSERT_NOT_REACHED();
return "?";
@@ -761,7 +761,7 @@ PassRefPtr<JSONObject> LoggingCanvas::objectForSkPaint(const SkPaint& paint)
paintItem->setNumber("strokeWidth", paint.getStrokeWidth());
paintItem->setNumber("strokeMiter", paint.getStrokeMiter());
paintItem->setString("flags", stringForSkPaintFlags(paint));
- paintItem->setString("filterLevel", filterLevelName(paint.getFilterLevel()));
+ paintItem->setString("filterLevel", filterQualityName(paint.getFilterQuality()));
paintItem->setString("textAlign", textAlignName(paint.getTextAlign()));
paintItem->setString("strokeCap", strokeCapName(paint.getStrokeCap()));
paintItem->setString("strokeJoin", strokeJoinName(paint.getStrokeJoin()));

Powered by Google App Engine
This is Rietveld 408576698