aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/sksg/SkSGGroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/sksg/SkSGGroup.cpp')
-rw-r--r--experimental/sksg/SkSGGroup.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/experimental/sksg/SkSGGroup.cpp b/experimental/sksg/SkSGGroup.cpp
index 9f40d6ad48..b71837a8bf 100644
--- a/experimental/sksg/SkSGGroup.cpp
+++ b/experimental/sksg/SkSGGroup.cpp
@@ -28,7 +28,7 @@ void Group::addChild(sk_sp<RenderNode> node) {
node->addInvalReceiver(this);
fChildren.push_back(std::move(node));
- this->invalidateSelf();
+ this->invalidate();
}
void Group::removeChild(const sk_sp<RenderNode>& node) {
@@ -42,7 +42,7 @@ void Group::removeChild(const sk_sp<RenderNode>& node) {
}
SkASSERT(fChildren.count() == origCount - 1);
- this->invalidateSelf();
+ this->invalidate();
}
void Group::onRender(SkCanvas* canvas) const {
@@ -51,16 +51,16 @@ void Group::onRender(SkCanvas* canvas) const {
}
}
-Node::RevalidationResult Group::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) {
+SkRect Group::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) {
SkASSERT(this->hasInval());
- RevalidationResult result = { SkRect::MakeEmpty(), Damage::kDefault };
+ SkRect bounds = SkRect::MakeEmpty();
for (const auto& child : fChildren) {
- result.fBounds.join(child->revalidate(ic, ctm));
+ bounds.join(child->revalidate(ic, ctm));
}
- return result;
+ return bounds;
}
} // namespace sksg