Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: include/core/SkGeometry.h

Issue 18258005: Add implicit hairline conic rendering to GPU (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/core/SkGeometry.h
diff --git a/include/core/SkGeometry.h b/include/core/SkGeometry.h
index 38cdf6e9b358386fe467ce0383650a65b829decf..b23989ffb5293e34a1148eeaa57466ffac8758af 100644
--- a/include/core/SkGeometry.h
+++ b/include/core/SkGeometry.h
@@ -72,6 +72,12 @@ int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValues[1]);
int SkChopQuadAtYExtrema(const SkPoint src[3], SkPoint dst[5]);
int SkChopQuadAtXExtrema(const SkPoint src[3], SkPoint dst[5]);
+/** Given 3 points on a quadratic bezier, if the point of maximum
+ curvature exists on the segment, returns the t value for this
+ point along the curve. Otherwise it will return a value of 0.
+*/
+float SkGetTQuadAtMaxCurvature(const SkPoint src[3]);
bsalomon 2013/07/10 15:14:36 It read don't right. SkGetQuadTAtMaxCurvature? Sk
reed1 2013/07/10 16:00:37 SkFindQuadMaxCurvature
+
/** Given 3 points on a quadratic bezier, divide it into 2 quadratics
if the point of maximum curvature exists on the quad segment.
Depending on what is returned, dst[] is treated as follows
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/core/SkGeometry.cpp » ('j') | src/core/SkGeometry.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698