aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--samplecode/SamplePictFile.cpp2
-rw-r--r--src/utils/SkDumpCanvas.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp
index c82d03e3ea..847894ce1a 100644
--- a/samplecode/SamplePictFile.cpp
+++ b/samplecode/SamplePictFile.cpp
@@ -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
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp
index 593ad0cfb7..f04316e660 100644
--- a/src/utils/SkDumpCanvas.cpp
+++ b/src/utils/SkDumpCanvas.cpp
@@ -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);