diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-20 17:55:43 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-20 17:55:43 +0000 |
commit | 139484095f014ab08265c32337fddeeec6c0877d (patch) | |
tree | 1bd05e1f81615b737b20674922fe01faeb6b0e77 /src/gpu/GrPathUtils.h | |
parent | 9615fed0057e6ef059b08f747d29cf9b00ef80d8 (diff) |
Move gpu conic calculations to GrPathUtils
BUG=
R=bsalomon@google.com, jvanverth@google.com
Author: egdaniel@google.com
Review URL: https://chromiumcodereview.appspot.com/22865023
git-svn-id: http://skia.googlecode.com/svn/trunk@10832 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrPathUtils.h')
-rw-r--r-- | src/gpu/GrPathUtils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrPathUtils.h b/src/gpu/GrPathUtils.h index dc4ecd9ee3..71f6e0b9c1 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 implicit equation of the + // 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 |