commit-bot@chromium.org | 628ed0b | 2014-05-19 14:32:49 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2014 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
| 9 | #ifndef GrDashingEffect_DEFINED |
| 10 | #define GrDashingEffect_DEFINED |
| 11 | |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 12 | #include "GrColor.h" |
commit-bot@chromium.org | 628ed0b | 2014-05-19 14:32:49 +0000 | [diff] [blame] | 13 | #include "GrTypesPriv.h" |
| 14 | #include "SkPathEffect.h" |
| 15 | |
joshualitt | 44701df | 2015-02-23 14:44:57 -0800 | [diff] [blame] | 16 | class GrClip; |
egdaniel | e61c411 | 2014-06-12 10:24:21 -0700 | [diff] [blame] | 17 | class GrDrawTarget; |
| 18 | class GrPaint; |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 19 | class GrPipelineBuilder; |
egdaniel | e61c411 | 2014-06-12 10:24:21 -0700 | [diff] [blame] | 20 | class GrStrokeInfo; |
commit-bot@chromium.org | 628ed0b | 2014-05-19 14:32:49 +0000 | [diff] [blame] | 21 | |
commit-bot@chromium.org | 628ed0b | 2014-05-19 14:32:49 +0000 | [diff] [blame] | 22 | namespace GrDashingEffect { |
joshualitt | 1c73548 | 2015-07-13 08:08:25 -0700 | [diff] [blame] | 23 | bool DrawDashLine(GrDrawTarget*, const GrPipelineBuilder&, GrColor, |
kkinnunen | 1899651 | 2015-04-26 23:18:49 -0700 | [diff] [blame] | 24 | const SkMatrix& viewMatrix, const SkPoint pts[2], bool useAA, |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 25 | const GrStrokeInfo& strokeInfo); |
kkinnunen | 1899651 | 2015-04-26 23:18:49 -0700 | [diff] [blame] | 26 | bool CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& strokeInfo, |
| 27 | const SkMatrix& viewMatrix); |
commit-bot@chromium.org | 628ed0b | 2014-05-19 14:32:49 +0000 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | #endif |