| Index: src/core/SkMatrix.cpp
|
| diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp
|
| index 33af64a41fe9f40e61756203b770f75cd1de3ee5..c03562d7e0d7615c8b5c240ca3a5b5c974b9e239 100644
|
| --- a/src/core/SkMatrix.cpp
|
| +++ b/src/core/SkMatrix.cpp
|
| @@ -424,18 +424,50 @@ void SkMatrix::setSinCos(SkScalar sinV, SkScalar cosV) {
|
| this->setTypeMask(kUnknown_Mask | kOnlyPerspectiveValid_Mask);
|
| }
|
|
|
| -void SkMatrix::setRotate(SkScalar degrees, SkScalar px, SkScalar py) {
|
| +void SkMatrix::setRotateRadians(SkScalar radians, SkScalar px, SkScalar py) {
|
| SkScalar sinV, cosV;
|
| - sinV = SkScalarSinCos(SkDegreesToRadians(degrees), &cosV);
|
| + sinV = SkScalarSinCos(radians, &cosV);
|
| this->setSinCos(sinV, cosV, px, py);
|
| }
|
|
|
| -void SkMatrix::setRotate(SkScalar degrees) {
|
| +void SkMatrix::setRotateRadians(SkScalar radians) {
|
| SkScalar sinV, cosV;
|
| - sinV = SkScalarSinCos(SkDegreesToRadians(degrees), &cosV);
|
| + sinV = SkScalarSinCos(radians, &cosV);
|
| this->setSinCos(sinV, cosV);
|
| }
|
|
|
| +bool SkMatrix::preRotateRadians(SkScalar radians, SkScalar px, SkScalar py) {
|
| + SkMatrix m;
|
| + m.setRotateRadians(radians, px, py);
|
| + return this->preConcat(m);
|
| +}
|
| +
|
| +bool SkMatrix::preRotateRadians(SkScalar radians) {
|
| + SkMatrix m;
|
| + m.setRotateRadians(radians);
|
| + return this->preConcat(m);
|
| +}
|
| +
|
| +bool SkMatrix::postRotateRadians(SkScalar radians, SkScalar px, SkScalar py) {
|
| + SkMatrix m;
|
| + m.setRotateRadians(radians, px, py);
|
| + return this->postConcat(m);
|
| +}
|
| +
|
| +bool SkMatrix::postRotateRadians(SkScalar radians) {
|
| + SkMatrix m;
|
| + m.setRotateRadians(radians);
|
| + return this->postConcat(m);
|
| +}
|
| +
|
| +void SkMatrix::setRotate(SkScalar degrees, SkScalar px, SkScalar py) {
|
| + this->setRotateRadians(SkDegreesToRadians(degrees), px, py);
|
| +}
|
| +
|
| +void SkMatrix::setRotate(SkScalar degrees) {
|
| + this->setRotateRadians(SkDegreesToRadians(degrees));
|
| +}
|
| +
|
| bool SkMatrix::preRotate(SkScalar degrees, SkScalar px, SkScalar py) {
|
| SkMatrix m;
|
| m.setRotate(degrees, px, py);
|
|
|