DescriptionAdd rotation APIs in radians to SkCanvas, SkMatrix
Rotation matrix APIs in skia side accept an argument in degrees currently.
However, Looking inside SkMatrix::setRotate, The degree value is changed to radian value by SkDegreesToRadians in order to calculate sin and cos.
Others, such as GraphicsContext in blink are generally often used radian value instead of degree value.
If we can support new rotation APIs in radians, we will be able to reduce unnecessary operations.
There was already a similar case in WebKit. (https://bugs.webkit.org/show_bug.cgi?id=87317)
Also, There are already two version methods in SkMatrix44. (setRotateAbout and setRotateDegreesAbout)
BUG=none
Patch Set 1 #
Total comments: 1
Messages
Total messages: 6 (0 generated)
|