commit | 8ec9a60bdb6f63e7d0d1a7d994f25bf82cc40859 | [log] [tgz] |
---|---|---|
author | Florin Malita <fmalita@chromium.org> | Fri Feb 01 17:59:25 2019 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Sat Feb 02 04:30:51 2019 +0000 |
tree | f2a494b298ab60124db40be24f98af605739519f | |
parent | 00dcf668659ab26b8691c64a977fdd19e9e8df09 [diff] [blame] |
[skottie] Initial repeater support TBR=reed Bug: skia:8399 Change-Id: Iadaf6b7b363e345d736efd3fd3a5f401963a457b Reviewed-on: https://skia-review.googlesource.com/c/188631 Commit-Queue: Florin Malita <fmalita@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org>
diff --git a/modules/sksg/src/SkSGGroup.cpp b/modules/sksg/src/SkSGGroup.cpp index df696c4..fff7436 100644 --- a/modules/sksg/src/SkSGGroup.cpp +++ b/modules/sksg/src/SkSGGroup.cpp
@@ -24,6 +24,13 @@ } } +void Group::clear() { + for (const auto& child : fChildren) { + this->unobserveInval(child); + } + fChildren.clear(); +} + void Group::addChild(sk_sp<RenderNode> node) { // should we allow duplicates? for (const auto& child : fChildren) {