diff options
Diffstat (limited to 'src/gpu/effects')
-rw-r--r-- | src/gpu/effects/GrDashingEffect.cpp | 6 | ||||
-rw-r--r-- | src/gpu/effects/GrDashingEffect.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/gpu/effects/GrDashingEffect.cpp b/src/gpu/effects/GrDashingEffect.cpp index 44974e8791..584d5096b9 100644 --- a/src/gpu/effects/GrDashingEffect.cpp +++ b/src/gpu/effects/GrDashingEffect.cpp @@ -14,7 +14,6 @@ #include "GrDrawTargetCaps.h" #include "GrEffect.h" #include "GrTBackendEffectFactory.h" -#include "SkGpuDevice.h" #include "SkGr.h" /////////////////////////////////////////////////////////////////////////////// @@ -87,8 +86,7 @@ static SkScalar calc_end_adjustment(const SkPathEffect::DashInfo& info, const Sk } -bool GrDashingEffect::DrawDashLine(const SkPoint pts[2], const SkPaint& paint, SkGpuDevice* dev) { - GrContext* context = dev->context(); +bool GrDashingEffect::DrawDashLine(const SkPoint pts[2], const SkPaint& paint, GrContext* context) { if (context->getRenderTarget()->isMultisampled()) { return false; } @@ -139,7 +137,7 @@ bool GrDashingEffect::DrawDashLine(const SkPoint pts[2], const SkPaint& paint, S } GrPaint grPaint; - SkPaint2GrPaintShader(dev, paint, true, &grPaint); + SkPaint2GrPaintShader(context, paint, true, &grPaint); bool useAA = paint.isAntiAlias(); diff --git a/src/gpu/effects/GrDashingEffect.h b/src/gpu/effects/GrDashingEffect.h index a1c2829fb8..0ed1cf031e 100644 --- a/src/gpu/effects/GrDashingEffect.h +++ b/src/gpu/effects/GrDashingEffect.h @@ -12,13 +12,13 @@ #include "GrTypesPriv.h" #include "SkPathEffect.h" -class SkGpuDevice; +class GrContext; class GrGLDashingEffect; class SkPath; namespace GrDashingEffect { - bool DrawDashLine(const SkPoint pnts[2], const SkPaint& paint, SkGpuDevice* dev); + bool DrawDashLine(const SkPoint pnts[2], const SkPaint& paint, GrContext* context); /** * An effect that renders a dashed line. It is intended to be used as a coverage effect. |