Home
last modified time | relevance | path

Searched refs:thetaArc (Results 1 - 2 of 2) sorted by relevance

/third_party/skia/src/core/
H A DSkPathBuilder.cpp517 SkScalar thetaArc = theta2 - theta1; in arcTo() local
518 if (thetaArc < 0 && (arcSweep == SkPathDirection::kCW)) { // arcSweep flipped from the original implementation in arcTo()
519 thetaArc += SK_ScalarPI * 2; in arcTo()
520 } else if (thetaArc > 0 && (arcSweep != SkPathDirection::kCW)) { // arcSweep flipped from the original implementation in arcTo()
521 thetaArc -= SK_ScalarPI * 2; in arcTo()
528 if (SkScalarAbs(thetaArc) < (SK_ScalarPI / (1000 * 1000))) { in arcTo()
536 int segments = SkScalarCeilToInt(SkScalarAbs(thetaArc / (2 * SK_ScalarPI / 3))); in arcTo()
537 SkScalar thetaWidth = thetaArc / segments; in arcTo()
H A DSkPath.cpp1227 SkScalar thetaArc = theta2 - theta1; in arcTo() local
1228 if (thetaArc < 0 && (arcSweep == SkPathDirection::kCW)) { // arcSweep flipped from the original implementation in arcTo()
1229 thetaArc += SK_ScalarPI * 2; in arcTo()
1230 } else if (thetaArc > 0 && (arcSweep != SkPathDirection::kCW)) { // arcSweep flipped from the original implementation in arcTo()
1231 thetaArc -= SK_ScalarPI * 2; in arcTo()
1238 if (SkScalarAbs(thetaArc) < (SK_ScalarPI / (1000 * 1000))) { in arcTo()
1246 int segments = SkScalarCeilToInt(SkScalarAbs(thetaArc / (2 * SK_ScalarPI / 3))); in arcTo()
1247 SkScalar thetaWidth = thetaArc / segments; in arcTo()

Completed in 13 milliseconds