diff options
author | caryclark <caryclark@google.com> | 2015-12-09 14:04:46 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-09 14:04:46 -0800 |
commit | 2028d7ff744c36855ed36d602e3e050e9f18ec9f (patch) | |
tree | 533a3a9790d60636b647b8c7e36d4a2a3322af90 /src/core/SkScan.h | |
parent | 645f6d9e399f42b1ff5fec9be7368bac2bab308f (diff) |
add support for capped hairlines
Extend the ends of hairline and haircurve segments when the paint is set to square or round, and the line or curve is at the start or end of a contour.
R=reed@google.com
BUG=skia:4599
Review URL: https://codereview.chromium.org/1491843006
Diffstat (limited to 'src/core/SkScan.h')
-rw-r--r-- | src/core/SkScan.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkScan.h b/src/core/SkScan.h index ef44873569..7309a1dd8c 100644 --- a/src/core/SkScan.h +++ b/src/core/SkScan.h @@ -56,6 +56,10 @@ public: static void AntiHairRect(const SkRect&, const SkRasterClip&, SkBlitter*); static void HairPath(const SkPath&, const SkRasterClip&, SkBlitter*); static void AntiHairPath(const SkPath&, const SkRasterClip&, SkBlitter*); + static void HairSquarePath(const SkPath&, const SkRasterClip&, SkBlitter*); + static void AntiHairSquarePath(const SkPath&, const SkRasterClip&, SkBlitter*); + static void HairRoundPath(const SkPath&, const SkRasterClip&, SkBlitter*); + static void AntiHairRoundPath(const SkPath&, const SkRasterClip&, SkBlitter*); private: friend class SkAAClip; |