aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrDashingEffect.h
blob: 05b1c9020542a2e6e9534f44390cde5f1079e7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

/*
 * Copyright 2014 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef GrDashingEffect_DEFINED
#define GrDashingEffect_DEFINED

#include "GrColor.h"
#include "GrTypesPriv.h"
#include "SkPathEffect.h"

class GrClip;
class GrDrawTarget;
class GrPaint;
class GrPipelineBuilder;
class GrStrokeInfo;

namespace GrDashingEffect {
    bool DrawDashLine(GrDrawTarget*, GrPipelineBuilder*, GrColor,
                      const SkMatrix& viewMatrix, const SkPoint pts[2], bool useAA,
                      const GrStrokeInfo& strokeInfo);
    bool CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& strokeInfo,
                         const SkMatrix& viewMatrix);
}

#endif