DescriptionAdd SkRRect::transform.
Much like SkPath::transform, it transforms an SkRRect based on an
SkMatrix. Unlike SkPath::transform, it will fail for matrices that
contain perspective or skewing.
Required by a future change (https://codereview.chromium.org/48623006)
to speed up drawing large blurry rounded rectangles by using ninepatches.
TODO: This could easily support 90 degree rotations, if desired.
BUG=https://b.corp.google.com/issue?id=11174385
R=reed@google.com, robertphillips@google.com
Committed: https://code.google.com/p/skia/source/detail?r=12132
Patch Set 1 #
Total comments: 8
Patch Set 2 : Fix negative scaling bug and add a test. #
Total comments: 10
Patch Set 3 : Fix some lines that were over 100 chars. #Patch Set 4 : Fix negative scales and don't violate constness. #Patch Set 5 : Fix a comment. Use taller RRect. #
Total comments: 2
Messages
Total messages: 11 (0 generated)
|