Chromium Code Reviews| Index: include/core/SkGeometry.h |
| diff --git a/include/core/SkGeometry.h b/include/core/SkGeometry.h |
| index d7836db735eaf749423c24a28a5efdad80ec4e41..2fad5cfee6562231e41459368372a0e144ed7b8c 100644 |
| --- a/include/core/SkGeometry.h |
| +++ b/include/core/SkGeometry.h |
| @@ -255,6 +255,11 @@ struct SkConic { |
| void computeTightBounds(SkRect* bounds) const; |
| void computeFastBounds(SkRect* bounds) const; |
| + |
| + // Find the parameter value where the conic takes on its maximum curvature. |
|
reed1
2014/02/21 17:09:41
nit: /** style comments match others in (esp. publ
|
| + // Returns true if the max curvature is inside the 0..1 parameter range, |
| + // otherwise returns false and leaves its t parameter unchanged. |
| + bool findMaxCurvature(SkScalar* t) const; |
| }; |
| #include "SkTemplates.h" |