From c9649ce7d0fbd80faeaaa82454f894358458d517 Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Fri, 16 Feb 2018 13:49:48 -0500 Subject: 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 Commit-Queue: Florin Malita --- experimental/svg/model/SkSVGNode.cpp | 8 +++----- 1 file 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; } } -- cgit v1.2.3