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