Index: src/gpu/effects/GrDashingEffect.cpp |
diff --git a/src/gpu/effects/GrDashingEffect.cpp b/src/gpu/effects/GrDashingEffect.cpp |
index 05aa277b5e74a99e00d61661dc7e38f3e073af3b..1d873de749b436b34be1a4fd2876d0f75645c43c 100644 |
--- a/src/gpu/effects/GrDashingEffect.cpp |
+++ b/src/gpu/effects/GrDashingEffect.cpp |
@@ -51,7 +51,7 @@ bool GrDashingEffect::CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& |
return false; |
} |
- SkPaint::Cap cap = strokeInfo.getStrokeRec().getCap(); |
+ SkPaint::Cap cap = strokeInfo.getCap(); |
// Current we do don't handle Round or Square cap dashes |
if (SkPaint::kRound_Cap == cap && intervals[0] != 0.f) { |
return false; |
@@ -684,10 +684,10 @@ static GrBatch* create_batch(GrColor color, const SkMatrix& viewMatrix, const Sk |
const SkScalar* intervals = strokeInfo.getDashIntervals(); |
SkScalar phase = strokeInfo.getDashPhase(); |
- SkPaint::Cap cap = strokeInfo.getStrokeRec().getCap(); |
+ SkPaint::Cap cap = strokeInfo.getCap(); |
DashBatch::Geometry geometry; |
- geometry.fSrcStrokeWidth = strokeInfo.getStrokeRec().getWidth(); |
+ geometry.fSrcStrokeWidth = strokeInfo.getWidth(); |
// the phase should be normalized to be [0, sum of all intervals) |
SkASSERT(phase >= 0 && phase < intervals[0] + intervals[1]); |