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.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/experimental/sksg/geometry/SkSGPath.cpp b/experimental/sksg/geometry/SkSGPath.cpp
index ce1ff392ac..2b7dc94952 100644
--- a/experimental/sksg/geometry/SkSGPath.cpp
+++ b/experimental/sksg/geometry/SkSGPath.cpp
@@ -18,11 +18,10 @@ void Path::onDraw(SkCanvas* canvas, const SkPaint& paint) const {
canvas->drawPath(fPath, paint);
}
-Node::RevalidationResult Path::onRevalidate(InvalidationController*, const SkMatrix&) {
- SkASSERT(this->hasSelfInval());
+SkRect Path::onRevalidate(InvalidationController*, const SkMatrix&) {
+ SkASSERT(this->hasInval());
- // Geometry does not contribute damage directly.
- return { fPath.computeTightBounds(), Damage::kBlockSelf };
+ return fPath.computeTightBounds();
}
SkPath Path::onAsPath() const {