blob: eccdafde3b69a8ba327f22bdcb306a17922a510f [file] [log] [blame]
/*
* 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 GrDrawOp;
class GrStyle;
namespace GrDashingEffect {
enum class AAMode {
kNone,
kCoverage,
kCoverageWithMSAA,
};
static const int kAAModeCnt = static_cast<int>(AAMode::kCoverageWithMSAA) + 1;
GrDrawOp* CreateDashLineBatch(GrColor,
const SkMatrix& viewMatrix,
const SkPoint pts[2],
AAMode,
const GrStyle& style);
bool CanDrawDashLine(const SkPoint pts[2], const GrStyle& style,
const SkMatrix& viewMatrix);
}
#endif