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
This commit is contained in:
parent
e9cd27d4a3
commit
3e7e992a8a
@ -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(")</dd>");
|
||||
|
||||
str->append("<dt>FilterLevel:</dt><dd>");
|
||||
static const char* gFilterLevelStrings[] = { "None", "Low", "Medium", "High" };
|
||||
str->append(gFilterLevelStrings[this->getFilterLevel()]);
|
||||
str->append("</dd>");
|
||||
|
||||
str->append("<dt>TextAlign:</dt><dd>");
|
||||
static const char* gTextAlignStrings[SkPaint::kAlignCount] = { "Left", "Center", "Right" };
|
||||
str->append(gTextAlignStrings[this->getTextAlign()]);
|
||||
|
Loading…
Reference in New Issue
Block a user