DescriptionFactor code to rotate a canvas about a point.
SkMatrix::scale and ::rotate take a point around which to scale or rotate.
Canvas lacks these helpers, so the code to rotate a canvas around a
point has been duplicated many times. Factor all of these
implementations into SkCanvas::rotate.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2142033002
Committed: https://skia.googlesource.com/skia/+/7438bfc0804d021aa92cdd5ea644994a4248f3db
Patch Set 1 #
Total comments: 1
Patch Set 2 : Move to canvas. #
Total comments: 2
Messages
Total messages: 23 (15 generated)
|