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

Unified Diff: include/core/SkGeometry.h

Issue 175193003: Stub for conic section max curvature (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Nits and a bunch of 80 col fixes Created 6 years, 10 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
« no previous file with comments | « no previous file | src/core/SkGeometry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
« no previous file with comments | « no previous file | src/core/SkGeometry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698