diff options
author | 2015-04-26 23:18:49 -0700 | |
---|---|---|
committer | 2015-04-26 23:18:50 -0700 | |
commit | 1899651ffc459f5462aa989cd6d08507947b67e4 (patch) | |
tree | 5f7c2c314e932dd8b7053401819f8d8bcba0436a /src/gpu/effects/GrDashingEffect.h | |
parent | 5d23c3824fd95785110c37e09eeaef8b3d9b9594 (diff) |
Extract gpu line dashing to GrDashLinePathRenderer
Move line dashing logic from GrContext::drawPath to
GrDashLinePathRenderer. This makes it possible to let path renderers render arbitrary dashed paths.
End goal is to implement dashing in GrStencilAndCoverPathRenderer.
Review URL: https://codereview.chromium.org/1100073003
Diffstat (limited to 'src/gpu/effects/GrDashingEffect.h')
-rw-r--r-- | src/gpu/effects/GrDashingEffect.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/effects/GrDashingEffect.h b/src/gpu/effects/GrDashingEffect.h index 26b016bcac..999abb23d8 100644 --- a/src/gpu/effects/GrDashingEffect.h +++ b/src/gpu/effects/GrDashingEffect.h @@ -22,8 +22,10 @@ class GrStrokeInfo; namespace GrDashingEffect { bool DrawDashLine(GrGpu*, GrDrawTarget*, GrPipelineBuilder*, GrColor, - const SkMatrix& viewMatrix, const SkPoint pts[2], const GrPaint& paint, + const SkMatrix& viewMatrix, const SkPoint pts[2], bool useAA, const GrStrokeInfo& strokeInfo); + bool CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& strokeInfo, + const SkMatrix& viewMatrix); } #endif |