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 |
11 | 11 |
12 #include "GrColor.h" | 12 #include "GrColor.h" |
13 #include "GrTypesPriv.h" | 13 #include "GrTypesPriv.h" |
14 #include "SkPathEffect.h" | 14 #include "SkPathEffect.h" |
15 | 15 |
16 class GrClip; | 16 class GrClip; |
17 class GrDrawTarget; | 17 class GrDrawTarget; |
18 class GrGpu; | 18 class GrGpu; |
19 class GrPaint; | 19 class GrPaint; |
20 class GrPipelineBuilder; | 20 class GrPipelineBuilder; |
21 class GrStrokeInfo; | 21 class GrStrokeInfo; |
22 | 22 |
23 namespace GrDashingEffect { | 23 namespace GrDashingEffect { |
24 bool DrawDashLine(GrGpu*, GrDrawTarget*, GrPipelineBuilder*, GrColor, | 24 bool DrawDashLine(GrGpu*, GrDrawTarget*, GrPipelineBuilder*, GrColor, |
25 const SkMatrix& viewMatrix, const SkPoint pts[2], const Gr
Paint& paint, | 25 const SkMatrix& viewMatrix, const SkPoint pts[2], bool use
AA, |
26 const GrStrokeInfo& strokeInfo); | 26 const GrStrokeInfo& strokeInfo); |
| 27 bool CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& strokeInfo, |
| 28 const SkMatrix& viewMatrix); |
27 } | 29 } |
28 | 30 |
29 #endif | 31 #endif |
OLD | NEW |