dump strokeWidth in SkDumpCanvas
git-svn-id: http://skia.googlecode.com/svn/trunk@9756 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp
index c82d03e..847894c 100644
--- a/samplecode/SamplePictFile.cpp
+++ b/samplecode/SamplePictFile.cpp
@@ -49,6 +49,8 @@
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
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp
index 593ad0c..f04316e 100644
--- a/src/utils/SkDumpCanvas.cpp
+++ b/src/utils/SkDumpCanvas.cpp
@@ -505,6 +505,10 @@
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);