New way to scale RRect
- far simpler
- matches the float behavior of transforming the path-equivalent
This shows a few tiny diffs, due to the different way we apply
the matrix itself:
Old way: transform distances (radii width and height)
New way: transform centers (positions, not distances)
The new way is aligned with out paths, even paths that represent
round-rects, are transformed. Hence this CL brings rrect::transform
inline with its path counterpart.
Triggered by SK_SUPPORT_LEGACY_RRECT_TRANSFORM
Clients should define this (or not) while they transition to the
(slighly) different behavior.
Change-Id: I5976bf5b7b7f943afa14a7f426e14ff29086d350
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1029976
Reviewed-by: Eric Boren <borenet@google.com>
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Mike Reed <mike@reedtribe.org>
Reviewed-by: Daniel Dilan <danieldilan@google.com>
2 files changed