Chromium Code Reviews| Index: src/gpu/GrPathUtils.h |
| diff --git a/src/gpu/GrPathUtils.h b/src/gpu/GrPathUtils.h |
| index dc4ecd9ee33e09e430196b4a5480d991e0125788..d02d9922388bb3e29576fefd13de3f8b3435b9e6 100644 |
| --- a/src/gpu/GrPathUtils.h |
| +++ b/src/gpu/GrPathUtils.h |
| @@ -97,6 +97,15 @@ namespace GrPathUtils { |
| float fM[6]; |
| }; |
| + // Input is 3 control points and a weight for a bezier conic. Calculates the |
| + // three linear functionals (K,L,M) that represent the iplicit equation of the |
|
bsalomon
2013/08/20 16:07:59
implicit
|
| + // conic, K^2 - LM. |
| + // |
| + // Output: |
| + // K = (klm[0], klm[1], klm[2]) |
| + // L = (klm[3], klm[4], klm[5]) |
| + // M = (klm[6], klm[7], klm[8]) |
| + void getConicKLM(const SkPoint p[3], const SkScalar weight, SkScalar klm[9]); |
| // Converts a cubic into a sequence of quads. If working in device space |
| // use tolScale = 1, otherwise set based on stretchiness of the matrix. The |