diff options
Diffstat (limited to 'experimental/sksg/SkSGGroup.cpp')
-rw-r--r-- | experimental/sksg/SkSGGroup.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/experimental/sksg/SkSGGroup.cpp b/experimental/sksg/SkSGGroup.cpp index fa9ae1e90e..9f40d6ad48 100644 --- a/experimental/sksg/SkSGGroup.cpp +++ b/experimental/sksg/SkSGGroup.cpp @@ -51,16 +51,16 @@ void Group::onRender(SkCanvas* canvas) const { } } -SkRect Group::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { +Node::RevalidationResult Group::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { SkASSERT(this->hasInval()); - SkRect bounds = SkRect::MakeEmpty(); + RevalidationResult result = { SkRect::MakeEmpty(), Damage::kDefault }; for (const auto& child : fChildren) { - bounds.join(child->revalidate(ic, ctm)); + result.fBounds.join(child->revalidate(ic, ctm)); } - return bounds; + return result; } } // namespace sksg |