aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-02-16 13:49:48 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-16 19:13:26 +0000
commitc9649ce7d0fbd80faeaaa82454f894358458d517 (patch)
treec24b9fe1ff2b001defeabd518a2ea512e8471cd3
parent48b56688e8f53346435f80b20aca2c0f1b7b54c7 (diff)
Guard ignored SVG attribute logging with SK_VERBOSE_SVG_PARSING
Change-Id: I01bb8c70dfcd3180aaf620f987b99ae0286cc48c Reviewed-on: https://skia-review.googlesource.com/108160 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
-rw-r--r--experimental/svg/model/SkSVGNode.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/experimental/svg/model/SkSVGNode.cpp b/experimental/svg/model/SkSVGNode.cpp
index e081c04a3f..60c0948244 100644
--- a/experimental/svg/model/SkSVGNode.cpp
+++ b/experimental/svg/model/SkSVGNode.cpp
@@ -189,11 +189,9 @@ void SkSVGNode::onSetAttribute(SkSVGAttribute attr, const SkSVGValue& v) {
}
break;
default:
- static bool attrIgnored = false;
- if (!attrIgnored) {
- SkDebugf("attribute ID <%d> ignored for node <%d>\n", attr, fTag);
- attrIgnored = true;
- }
+#if defined(SK_VERBOSE_SVG_PARSING)
+ SkDebugf("attribute ID <%d> ignored for node <%d>\n", attr, fTag);
+#endif
break;
}
}