OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrDashingEffect_DEFINED | 9 #ifndef GrDashingEffect_DEFINED |
10 #define GrDashingEffect_DEFINED | 10 #define GrDashingEffect_DEFINED |
(...skipping 13 matching lines...) Expand all Loading... |
24 bool DrawDashLine(const SkPoint pts[2], const GrPaint& paint, const GrStroke
Info& strokeInfo, | 24 bool DrawDashLine(const SkPoint pts[2], const GrPaint& paint, const GrStroke
Info& strokeInfo, |
25 GrGpu* gpu, GrDrawTarget* target, const SkMatrix& vm); | 25 GrGpu* gpu, GrDrawTarget* target, const SkMatrix& vm); |
26 | 26 |
27 /** | 27 /** |
28 * An effect that renders a dashed line. It is intended to be used as a cove
rage effect. | 28 * An effect that renders a dashed line. It is intended to be used as a cove
rage effect. |
29 * The effect is meant for dashed lines that only have a single on/off inter
val pair. | 29 * The effect is meant for dashed lines that only have a single on/off inter
val pair. |
30 * Bounding geometry is rendered and the effect computes coverage based on t
he fragment's | 30 * Bounding geometry is rendered and the effect computes coverage based on t
he fragment's |
31 * position relative to the dashed line. | 31 * position relative to the dashed line. |
32 */ | 32 */ |
33 GrEffectRef* Create(GrEffectEdgeType edgeType, const SkPathEffect::DashInfo&
info, | 33 GrEffectRef* Create(GrEffectEdgeType edgeType, const SkPathEffect::DashInfo&
info, |
34 SkScalar strokeWidth); | 34 SkScalar strokeWidth, bool isRoundCap); |
35 } | 35 } |
36 | 36 |
37 #endif | 37 #endif |
OLD | NEW |