aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2016-08-10 16:25:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-10 16:25:33 -0700
commitfea704e115f6298f629e9293c506a039af7db0eb (patch)
tree5c78a947045e6bb14f3c78a13ab4b8b74ea47ca9 /experimental/svg
parent27cdd947903a4262bb483e7d35153358f4541bf8 (diff)
[SVGDom] Disable verbose parsing messages be default
Guard with SK_VERBOSE_SVG_PARSING R=robertphillips@google.com,rmistry@google.com,stephana@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2235963003 Review-Url: https://codereview.chromium.org/2235963003
Diffstat (limited to 'experimental/svg')
-rw-r--r--experimental/svg/model/SkSVGDOM.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/experimental/svg/model/SkSVGDOM.cpp b/experimental/svg/model/SkSVGDOM.cpp
index c4fdcb172b..face3b4a01 100644
--- a/experimental/svg/model/SkSVGDOM.cpp
+++ b/experimental/svg/model/SkSVGDOM.cpp
@@ -192,14 +192,18 @@ void set_string_attribute(const sk_sp<SkSVGNode>& node, const char* name, const
SkTo<int>(SK_ARRAY_COUNT(gAttributeParseInfo)),
name, sizeof(gAttributeParseInfo[0]));
if (attrIndex < 0) {
+#if defined(SK_VERBOSE_SVG_PARSING)
SkDebugf("unhandled attribute: %s\n", name);
+#endif
return;
}
SkASSERT(SkTo<size_t>(attrIndex) < SK_ARRAY_COUNT(gAttributeParseInfo));
const auto& attrInfo = gAttributeParseInfo[attrIndex].fValue;
if (!attrInfo.fSetter(node, attrInfo.fAttr, value)) {
+#if defined(SK_VERBOSE_SVG_PARSING)
SkDebugf("could not parse attribute: '%s=\"%s\"'\n", name, value);
+#endif
}
}
@@ -229,7 +233,9 @@ sk_sp<SkSVGNode> construct_svg_node(const SkDOM& dom, const ConstructionContext&
SkTo<int>(SK_ARRAY_COUNT(gTagFactories)),
elem, sizeof(gTagFactories[0]));
if (tagIndex < 0) {
+#if defined(SK_VERBOSE_SVG_PARSING)
SkDebugf("unhandled element: <%s>\n", elem);
+#endif
return nullptr;
}