dump strokeWidth in SkDumpCanvas

git-svn-id: http://skia.googlecode.com/svn/trunk@9756 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-06-25 20:42:37 +00:00
Родитель 79fb9c085c
Коммит b8b830e012
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -49,6 +49,8 @@ class PictFileView : public SampleView {
SkFILEStream stream(path);
if (stream.isValid()) {
pic = SkNEW_ARGS(SkPicture, (&stream, NULL, &SkImageDecoder::DecodeMemory));
} else {
SkDebugf("coun't load picture at \"path\"\n", path);
}
if (false) { // re-record

Просмотреть файл

@ -505,6 +505,10 @@ void SkFormatDumper::dump(SkDumpCanvas* canvas, SkDumpCanvas::Verb verb,
msg.appendf(" textSize:%g", SkScalarToFloat(p->getTextSize()));
appendPtr(&msg, p->getTypeface(), "typeface");
}
if (p->getStyle() != SkPaint::kFill_Style) {
msg.appendf(" strokeWidth:%g", SkScalarToFloat(p->getStrokeWidth()));
}
}
fProc(msg.c_str(), fRefcon);