diff options
Diffstat (limited to 'experimental')
-rw-r--r-- | experimental/sksg/SkSGDraw.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/experimental/sksg/SkSGDraw.cpp b/experimental/sksg/SkSGDraw.cpp index efeee0577d..14f844a359 100644 --- a/experimental/sksg/SkSGDraw.cpp +++ b/experimental/sksg/SkSGDraw.cpp @@ -32,11 +32,13 @@ void Draw::onRender(SkCanvas* canvas) const { SkRect Draw::onRevalidate(InvalidationController* ic, const SkMatrix& ctm) { SkASSERT(this->hasInval()); - // TODO: adjust bounds for paint - const auto bounds = fGeometry->revalidate(ic, ctm); + auto bounds = fGeometry->revalidate(ic, ctm); fPaint->revalidate(ic, ctm); - return bounds; + const auto& paint = fPaint->makePaint(); + SkASSERT(paint.canComputeFastBounds()); + + return paint.computeFastBounds(bounds, &bounds); } } // namespace sksg |