From 48b56688e8f53346435f80b20aca2c0f1b7b54c7 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Fri, 16 Feb 2018 11:59:45 -0500 Subject: report ignore attr once only bots like this one https://chromium-swarm.appspot.com/task?id=3bb84dda02fc0e10 fill its log with this debug message, so just write it once R=fmalita@chromium.org Bug: skia: Change-Id: Ia82d89aa23c3a5984080f5d9efdc03ff18b6515e Reviewed-on: https://skia-review.googlesource.com/108100 Commit-Queue: Florin Malita Reviewed-by: Florin Malita --- experimental/svg/model/SkSVGNode.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'experimental') diff --git a/experimental/svg/model/SkSVGNode.cpp b/experimental/svg/model/SkSVGNode.cpp index c5262a0da8..e081c04a3f 100644 --- a/experimental/svg/model/SkSVGNode.cpp +++ b/experimental/svg/model/SkSVGNode.cpp @@ -189,7 +189,11 @@ void SkSVGNode::onSetAttribute(SkSVGAttribute attr, const SkSVGValue& v) { } break; default: - SkDebugf("attribute ID <%d> ignored for node <%d>\n", attr, fTag); + static bool attrIgnored = false; + if (!attrIgnored) { + SkDebugf("attribute ID <%d> ignored for node <%d>\n", attr, fTag); + attrIgnored = true; + } break; } } -- cgit v1.2.3