aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ccpr/GrCCPRGeometry.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-09-28 12:08:33 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-28 18:39:58 +0000
commit29011a2bda560a645e6ddbe162df0856fe259e7b (patch)
treedcd41d334c5a9ee7622d5f390af502130f29744f /src/gpu/ccpr/GrCCPRGeometry.h
parenta039d3bd06be63da883fcc5ef55efb736d044f6d (diff)
Remove tolerance form SkClassifyCubic
It's too inexact as-is. If the caller wants tolerance they can do their own with knowledge of the pixel grid. The homogeneous math is stable with infinities so it's really unnecessary here. Bug: skia:7073 Change-Id: I4dc34ad96b859a138714b6d4f8804fec4f89f17a Reviewed-on: https://skia-review.googlesource.com/51182 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/ccpr/GrCCPRGeometry.h')
-rw-r--r--src/gpu/ccpr/GrCCPRGeometry.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/ccpr/GrCCPRGeometry.h b/src/gpu/ccpr/GrCCPRGeometry.h
index ee06f78a9a..1cb4719b1e 100644
--- a/src/gpu/ccpr/GrCCPRGeometry.h
+++ b/src/gpu/ccpr/GrCCPRGeometry.h
@@ -93,7 +93,8 @@ public:
PrimitiveTallies endContour(); // Returns the numbers of primitives needed to draw the contour.
private:
- inline void appendMonotonicQuadratic(const Sk2f& p1, const Sk2f& p2);
+ inline void appendMonotonicQuadratics(const Sk2f& p0, const Sk2f& p1, const Sk2f& p2,
+ bool allowChop = true);
using AppendCubicFn = void(GrCCPRGeometry::*)(const Sk2f& p0, const Sk2f& p1,
const Sk2f& p2, const Sk2f& p3,