зеркало из https://github.com/mozilla/moz-skia.git
dump strokeWidth in SkDumpCanvas
git-svn-id: http://skia.googlecode.com/svn/trunk@9756 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
79fb9c085c
Коммит
b8b830e012
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче