diff options
Diffstat (limited to 'experimental/sksg/geometry/SkSGPath.cpp')
-rw-r--r-- | experimental/sksg/geometry/SkSGPath.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/experimental/sksg/geometry/SkSGPath.cpp b/experimental/sksg/geometry/SkSGPath.cpp index 8a1550a8f7..9b7b0427ea 100644 --- a/experimental/sksg/geometry/SkSGPath.cpp +++ b/experimental/sksg/geometry/SkSGPath.cpp @@ -18,7 +18,9 @@ void Path::onDraw(SkCanvas* canvas, const SkPaint& paint) const { canvas->drawPath(fPath, paint); } -SkRect Path::onComputeBounds() const { +SkRect Path::onRevalidate(InvalidationController*, const SkMatrix&) { + SkASSERT(this->hasSelfInval()); + return fPath.computeTightBounds(); } |