blob: 7d0d006f1b56e93ff287cf11dd11ee28cd063c9a [file] [log] [blame]
commit-bot@chromium.org628ed0b2014-05-19 14:32:49 +00001
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
joshualitt2e3b3e32014-12-09 13:31:14 -080012#include "GrColor.h"
commit-bot@chromium.org628ed0b2014-05-19 14:32:49 +000013#include "GrTypesPriv.h"
14#include "SkPathEffect.h"
15
joshualitt44701df2015-02-23 14:44:57 -080016class GrClip;
egdaniele61c4112014-06-12 10:24:21 -070017class GrDrawTarget;
18class GrPaint;
egdaniel8dd688b2015-01-22 10:16:09 -080019class GrPipelineBuilder;
egdaniele61c4112014-06-12 10:24:21 -070020class GrStrokeInfo;
commit-bot@chromium.org628ed0b2014-05-19 14:32:49 +000021
commit-bot@chromium.org628ed0b2014-05-19 14:32:49 +000022namespace GrDashingEffect {
joshualitt1c735482015-07-13 08:08:25 -070023 bool DrawDashLine(GrDrawTarget*, const GrPipelineBuilder&, GrColor,
kkinnunen18996512015-04-26 23:18:49 -070024 const SkMatrix& viewMatrix, const SkPoint pts[2], bool useAA,
egdaniel8dd688b2015-01-22 10:16:09 -080025 const GrStrokeInfo& strokeInfo);
kkinnunen18996512015-04-26 23:18:49 -070026 bool CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& strokeInfo,
27 const SkMatrix& viewMatrix);
commit-bot@chromium.org628ed0b2014-05-19 14:32:49 +000028}
29
30#endif