From af5c506cd6b63f43a0ebee2fb171ea55ba98e09f Mon Sep 17 00:00:00 2001 From: "mike@reedtribe.org" Date: Tue, 30 Apr 2013 02:14:58 +0000 Subject: add routines to compute error between conic and quad git-svn-id: http://skia.googlecode.com/svn/trunk@8916 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkGeometry.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'include/core') 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; -- cgit v1.2.3