Skip to content

Commit

Permalink
Fix the offset applied to clip rectangles for painting text shadows
Browse files Browse the repository at this point in the history
See flutter/flutter#105546

Change-Id: If344679dc04fed0421141f072bcdd6c2d6bb4f4d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/548358
Reviewed-by: Julia Lavrova <[email protected]>
Commit-Queue: Jason Simmons <[email protected]>
  • Loading branch information
jason-simmons authored and SkCQ committed Jun 15, 2022
1 parent 8ccbeee commit 48d421c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/skparagraph/src/TextLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ void TextLine::paintShadow(SkCanvas* canvas,
if (context.clippingNeeded) {
canvas->save();
SkRect clip = extendHeight(context);
clip.offset(x, y);
clip.offset(this->offset());
canvas->clipRect(clip);
}
Expand Down

0 comments on commit 48d421c

Please sign in to comment.