aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-05-11 14:36:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-11 14:36:33 -0700
commitc6325cde797baeedebc515bc8610f96eacbd36c9 (patch)
tree383ffd88191bfb87afe79b1e1b39d52cec151992 /src/core
parente4cee1f283c435618343f0c7b298207d5a9a3e1c (diff)
remove near one check for arcs
Small arcs are pinned by SkSinCos and do not need to be additionally pinned by SkConic::BuildUnitArc. R=reed@google.com, djsollen@google.com Review URL: https://codereview.chromium.org/1133113003
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkGeometry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkGeometry.cpp b/src/core/SkGeometry.cpp
index 671a1eacc3..3ee2fa5d26 100644
--- a/src/core/SkGeometry.cpp
+++ b/src/core/SkGeometry.cpp
@@ -1557,7 +1557,7 @@ int SkConic::BuildUnitArc(const SkVector& uStart, const SkVector& uStop, SkRotat
const SkScalar dot = SkVector::DotProduct(lastQ, finalP);
SkASSERT(0 <= dot && dot <= SK_Scalar1 + SK_ScalarNearlyZero);
- if (dot < 1 - SK_ScalarNearlyZero) {
+ if (dot < 1) {
SkVector offCurve = { lastQ.x() + x, lastQ.y() + y };
// compute the bisector vector, and then rescale to be the off-curve point.
// we compute its length from cos(theta/2) = length / 1, using half-angle identity we get