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

Unified Diff: include/core/SkPath.h

Issue 1639143002: Add quad to cubic bezier conversion utility to SkPath. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Modified comment style. Created 4 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/SkPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPath.h
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 4ce816f92f12d04020b63e98801274ee5a9cd4a1..9d8421fd6f1a0e8892c8bfa459af0565e6d9e0d2 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -547,6 +547,13 @@ public:
SkScalar w, SkPoint pts[], int pow2);
/**
+ * Given 3 points on a quadratic bezier, use degree elevation to
+ * convert it into the cubic fitting the same curve. The new cubic
+ * curve is returned in dst[0..3].
+ */
+ static void ConvertQuadToCubic(const SkPoint src[3], SkPoint dst[4]);
+
+ /**
* Returns true if the path specifies a rectangle.
*
* If this returns false, then all output parameters are ignored, and left
« no previous file with comments | « no previous file | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698