| Index: src/gpu/GrAAHairLinePathRenderer.cpp
|
| diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp
|
| index 2b4689e4d60facdca72119d5e6b63f517e09de37..56a33a45ce51bb21cda1d244efd3c8376cb976b6 100644
|
| --- a/src/gpu/GrAAHairLinePathRenderer.cpp
|
| +++ b/src/gpu/GrAAHairLinePathRenderer.cpp
|
| @@ -10,11 +10,11 @@
|
| #include "GrContext.h"
|
| #include "GrDrawState.h"
|
| #include "GrDrawTargetCaps.h"
|
| -#include "GrEffect.h"
|
| +#include "GrProcessor.h"
|
| #include "GrGpu.h"
|
| #include "GrIndexBuffer.h"
|
| #include "GrPathUtils.h"
|
| -#include "GrTBackendEffectFactory.h"
|
| +#include "GrTBackendProcessorFactory.h"
|
| #include "SkGeometry.h"
|
| #include "SkStroke.h"
|
| #include "SkTemplates.h"
|
| @@ -708,7 +708,7 @@ namespace {
|
| // position + edge
|
| extern const GrVertexAttrib gHairlineBezierAttribs[] = {
|
| {kVec2f_GrVertexAttribType, 0, kPosition_GrVertexAttribBinding},
|
| - {kVec4f_GrVertexAttribType, sizeof(SkPoint), kEffect_GrVertexAttribBinding}
|
| + {kVec4f_GrVertexAttribType, sizeof(SkPoint), kGeometryProcessor_GrVertexAttribBinding}
|
| };
|
|
|
| // position + coverage
|
| @@ -995,12 +995,12 @@ bool GrAAHairLinePathRenderer::onDrawPath(const SkPath& path,
|
| kVertsPerQuad * quadCnt + kVertsPerQuad * conicCnt));
|
|
|
| if (quadCnt > 0) {
|
| - GrEffect* hairQuadEffect = GrQuadEffect::Create(kHairlineAA_GrEffectEdgeType,
|
| - *target->caps());
|
| - SkASSERT(hairQuadEffect);
|
| + GrGeometryProcessor* hairQuadProcessor =
|
| + GrQuadEffect::Create(kHairlineAA_GrProcessorEdgeType, *target->caps());
|
| + SkASSERT(hairQuadProcessor);
|
| GrDrawState::AutoRestoreEffects are(drawState);
|
| target->setIndexSourceToBuffer(fQuadsIndexBuffer);
|
| - drawState->setGeometryProcessor(hairQuadEffect)->unref();
|
| + drawState->setGeometryProcessor(hairQuadProcessor)->unref();
|
| int quads = 0;
|
| while (quads < quadCnt) {
|
| int n = SkTMin(quadCnt - quads, kNumQuadsInIdxBuffer);
|
| @@ -1016,8 +1016,8 @@ bool GrAAHairLinePathRenderer::onDrawPath(const SkPath& path,
|
|
|
| if (conicCnt > 0) {
|
| GrDrawState::AutoRestoreEffects are(drawState);
|
| - GrEffect* hairConicEffect = GrConicEffect::Create(kHairlineAA_GrEffectEdgeType,
|
| - *target->caps());
|
| + GrGeometryProcessor* hairConicEffect = GrConicEffect::Create(
|
| + kHairlineAA_GrProcessorEdgeType, *target->caps());
|
| SkASSERT(hairConicEffect);
|
| drawState->setGeometryProcessor(hairConicEffect)->unref();
|
| int conics = 0;
|
|
|