Index: src/gpu/effects/GrDashingEffect.cpp |
diff --git a/src/gpu/effects/GrDashingEffect.cpp b/src/gpu/effects/GrDashingEffect.cpp |
index 17a2d8dfe70ea0ccaf7a7a4d128c97a180c95127..13d4a38e8535f5ab0de470277d109e3390ed16c5 100644 |
--- a/src/gpu/effects/GrDashingEffect.cpp |
+++ b/src/gpu/effects/GrDashingEffect.cpp |
@@ -14,7 +14,6 @@ |
#include "GrContext.h" |
#include "GrCoordTransform.h" |
#include "GrDefaultGeoProcFactory.h" |
-#include "GrDrawTarget.h" |
#include "GrInvariantOutput.h" |
#include "GrProcessor.h" |
#include "GrStrokeInfo.h" |
@@ -746,19 +745,13 @@ static GrDrawBatch* create_batch(GrColor color, const SkMatrix& viewMatrix, cons |
return DashBatch::Create(geometry, cap, aaMode, fullDash); |
} |
-bool GrDashingEffect::DrawDashLine(GrDrawTarget* target, |
- const GrPipelineBuilder& pipelineBuilder, GrColor color, |
- const SkMatrix& viewMatrix, const SkPoint pts[2], |
- bool useAA, const GrStrokeInfo& strokeInfo) { |
- SkAutoTUnref<GrDrawBatch> batch( |
- create_batch(color, viewMatrix, pts, useAA, strokeInfo, |
- pipelineBuilder.getRenderTarget()->isUnifiedMultisampled())); |
- if (!batch) { |
- return false; |
- } |
- |
- target->drawBatch(pipelineBuilder, batch); |
- return true; |
+GrDrawBatch* GrDashingEffect::CreateDashLineBatch(GrColor color, |
+ const SkMatrix& viewMatrix, |
+ const SkPoint pts[2], |
+ bool useAA, |
+ bool msaaIsEnabled, |
+ const GrStrokeInfo& strokeInfo) { |
+ return create_batch(color, viewMatrix, pts, useAA, strokeInfo, msaaIsEnabled); |
} |
////////////////////////////////////////////////////////////////////////////// |