aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/sksg/SkSGDraw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/sksg/SkSGDraw.cpp')
-rw-r--r--experimental/sksg/SkSGDraw.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/experimental/sksg/SkSGDraw.cpp b/experimental/sksg/SkSGDraw.cpp
index 56415fc86e..efeee0577d 100644
--- a/experimental/sksg/SkSGDraw.cpp
+++ b/experimental/sksg/SkSGDraw.cpp
@@ -29,16 +29,14 @@ void Draw::onRender(SkCanvas* canvas) const {
fGeometry->draw(canvas, fPaint->makePaint());
}
-Node::RevalidationResult Draw::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) {
+SkRect Draw::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) {
SkASSERT(this->hasInval());
// TODO: adjust bounds for paint
const auto bounds = fGeometry->revalidate(ic, ctm);
fPaint->revalidate(ic, ctm);
- // Neither paint nor geometry contribute to damage directly; instead we generate
- // damage here, at the binding point.
- return { bounds, Damage::kForceSelf };
+ return bounds;
}
} // namespace sksg