aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/sksg/geometry/SkSGPath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/sksg/geometry/SkSGPath.cpp')
-rw-r--r--experimental/sksg/geometry/SkSGPath.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/experimental/sksg/geometry/SkSGPath.cpp b/experimental/sksg/geometry/SkSGPath.cpp
index a04dcf60cc..ce1ff392ac 100644
--- a/experimental/sksg/geometry/SkSGPath.cpp
+++ b/experimental/sksg/geometry/SkSGPath.cpp
@@ -18,10 +18,11 @@ void Path::onDraw(SkCanvas* canvas, const SkPaint& paint) const {
canvas->drawPath(fPath, paint);
}
-SkRect Path::onRevalidate(InvalidationController*, const SkMatrix&) {
+Node::RevalidationResult Path::onRevalidate(InvalidationController*, const SkMatrix&) {
SkASSERT(this->hasSelfInval());
- return fPath.computeTightBounds();
+ // Geometry does not contribute damage directly.
+ return { fPath.computeTightBounds(), Damage::kBlockSelf };
}
SkPath Path::onAsPath() const {