From 3e7e992a8aa564e75bede2a1dc787142d2c2bab0 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Wed, 16 Oct 2013 17:53:18 +0000 Subject: [PATCH] Add display of filterLevel to debugger https://codereview.chromium.org/27525002/ git-svn-id: http://skia.googlecode.com/svn/trunk@11818 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkPaint.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp index 44eef44..9e3f8ed 100644 --- a/src/core/SkPaint.cpp +++ b/src/core/SkPaint.cpp @@ -2434,7 +2434,6 @@ void SkPaint::toString(SkString* str) const { if (this->getFlags()) { bool needSeparator = false; SkAddFlagToString(str, this->isAntiAlias(), "AntiAlias", &needSeparator); - SkAddFlagToString(str, this->isFilterBitmap(), "FilterBitmap", &needSeparator); SkAddFlagToString(str, this->isDither(), "Dither", &needSeparator); SkAddFlagToString(str, this->isUnderlineText(), "UnderlineText", &needSeparator); SkAddFlagToString(str, this->isStrikeThruText(), "StrikeThruText", &needSeparator); @@ -2454,6 +2453,11 @@ void SkPaint::toString(SkString* str) const { } str->append(")"); + str->append("
FilterLevel:
"); + static const char* gFilterLevelStrings[] = { "None", "Low", "Medium", "High" }; + str->append(gFilterLevelStrings[this->getFilterLevel()]); + str->append("
"); + str->append("
TextAlign:
"); static const char* gTextAlignStrings[SkPaint::kAlignCount] = { "Left", "Center", "Right" }; str->append(gTextAlignStrings[this->getTextAlign()]); -- 2.7.4