aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-30 02:14:58 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-30 02:14:58 +0000
commitaf5c506cd6b63f43a0ebee2fb171ea55ba98e09f (patch)
tree7596651f2dadbde52dabe449edb3add85891e1b1 /include
parentc56009118970d634cdb6c50ff4616c8eb446cda0 (diff)
add routines to compute error between conic and quad
git-svn-id: http://skia.googlecode.com/svn/trunk@8916 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkGeometry.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/core/SkGeometry.h b/include/core/SkGeometry.h
index 97997c410a..1251fcf98d 100644
--- a/include/core/SkGeometry.h
+++ b/include/core/SkGeometry.h
@@ -220,13 +220,8 @@ struct SkConic {
void chopAt(SkScalar t, SkConic dst[2]) const;
void chop(SkConic dst[2]) const;
- /**
- * Return the max difference between the conic and its framing quadratic
- * in err and return true. If the conic is degenerate (a line between
- * pts[0] and pts[2]) or has a negative weight, return false and ignore
- * the diff parameter.
- */
- bool computeErrorAsQuad(SkVector* err) const;
+ void computeAsQuadError(SkVector* err) const;
+ bool asQuadTol(SkScalar tol) const;
int computeQuadPOW2(SkScalar tol) const;
int chopIntoQuadsPOW2(SkPoint pts[], int pow2) const;