diff options
author | Cary Clark <caryclark@skia.org> | 2018-02-16 11:59:45 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-16 18:43:06 +0000 |
commit | 48b56688e8f53346435f80b20aca2c0f1b7b54c7 (patch) | |
tree | 726596e83eb615935e555376ab3c3c0cfd2ea740 /experimental | |
parent | c401bb9c14332aa6c4c19d7f299f1512bf07c6a2 (diff) |
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 <fmalita@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental')
-rw-r--r-- | experimental/svg/model/SkSVGNode.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; } } |