Index: gm/beziereffects.cpp |
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp |
index 924f2a5c40350841671e81bcf19cd3705f9c7a83..ec7e83e763bd0d4cda3ad6b781e7fc880ba62500 100644 |
--- a/gm/beziereffects.cpp |
+++ b/gm/beziereffects.cpp |
@@ -26,7 +26,7 @@ |
namespace { |
extern const GrVertexAttrib kAttribs[] = { |
{kVec2f_GrVertexAttribType, 0, kPosition_GrVertexAttribBinding}, |
- {kVec4f_GrVertexAttribType, sizeof(SkPoint), kEffect_GrVertexAttribBinding} |
+ {kVec4f_GrVertexAttribType, sizeof(SkPoint), kGeometryProcessor_GrVertexAttribBinding} |
}; |
} |
@@ -92,17 +92,17 @@ protected: |
{rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, |
{rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} |
}; |
- for(int edgeType = 0; edgeType < kGrEffectEdgeTypeCnt; ++edgeType) { |
- SkAutoTUnref<GrEffect> effect; |
+ for(int edgeType = 0; edgeType < kGrProcessorEdgeTypeCnt; ++edgeType) { |
+ SkAutoTUnref<GrGeometryProcessor> gp; |
{ // scope to contain GrTestTarget |
GrTestTarget tt; |
context->getTestTarget(&tt); |
if (NULL == tt.target()) { |
continue; |
} |
- GrEffectEdgeType et = (GrEffectEdgeType)edgeType; |
- effect.reset(GrCubicEffect::Create(et, *tt.target()->caps())); |
- if (!effect) { |
+ GrPrimitiveEdgeType et = (GrPrimitiveEdgeType)edgeType; |
+ gp.reset(GrCubicEffect::Create(et, *tt.target()->caps())); |
+ if (!gp) { |
continue; |
} |
} |
@@ -170,7 +170,7 @@ protected: |
GrDrawState* drawState = tt.target()->drawState(); |
drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex)); |
- drawState->setGeometryProcessor(effect); |
+ drawState->setGeometryProcessor(gp); |
drawState->setRenderTarget(rt); |
drawState->setColor(0xff000000); |
@@ -250,17 +250,17 @@ protected: |
{rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} |
}; |
SkScalar weight = rand.nextRangeF(0.f, 2.f); |
- for(int edgeType = 0; edgeType < kGrEffectEdgeTypeCnt; ++edgeType) { |
- SkAutoTUnref<GrEffect> effect; |
+ for(int edgeType = 0; edgeType < kGrProcessorEdgeTypeCnt; ++edgeType) { |
+ SkAutoTUnref<GrGeometryProcessor> gp; |
{ // scope to contain GrTestTarget |
GrTestTarget tt; |
context->getTestTarget(&tt); |
if (NULL == tt.target()) { |
continue; |
} |
- GrEffectEdgeType et = (GrEffectEdgeType)edgeType; |
- effect.reset(GrConicEffect::Create(et, *tt.target()->caps())); |
- if (!effect) { |
+ GrPrimitiveEdgeType et = (GrPrimitiveEdgeType)edgeType; |
+ gp.reset(GrConicEffect::Create(et, *tt.target()->caps())); |
+ if (!gp) { |
continue; |
} |
} |
@@ -325,7 +325,7 @@ protected: |
GrDrawState* drawState = tt.target()->drawState(); |
drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex)); |
- drawState->setGeometryProcessor(effect); |
+ drawState->setGeometryProcessor(gp); |
drawState->setRenderTarget(rt); |
drawState->setColor(0xff000000); |
@@ -439,17 +439,17 @@ protected: |
{rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, |
{rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} |
}; |
- for(int edgeType = 0; edgeType < kGrEffectEdgeTypeCnt; ++edgeType) { |
- SkAutoTUnref<GrEffect> effect; |
+ for(int edgeType = 0; edgeType < kGrProcessorEdgeTypeCnt; ++edgeType) { |
+ SkAutoTUnref<GrGeometryProcessor> gp; |
{ // scope to contain GrTestTarget |
GrTestTarget tt; |
context->getTestTarget(&tt); |
if (NULL == tt.target()) { |
continue; |
} |
- GrEffectEdgeType et = (GrEffectEdgeType)edgeType; |
- effect.reset(GrQuadEffect::Create(et, *tt.target()->caps())); |
- if (!effect) { |
+ GrPrimitiveEdgeType et = (GrPrimitiveEdgeType)edgeType; |
+ gp.reset(GrQuadEffect::Create(et, *tt.target()->caps())); |
+ if (!gp) { |
continue; |
} |
} |
@@ -509,7 +509,7 @@ protected: |
GrDrawState* drawState = tt.target()->drawState(); |
drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex)); |
- drawState->setGeometryProcessor(effect); |
+ drawState->setGeometryProcessor(gp); |
drawState->setRenderTarget(rt); |
drawState->setColor(0xff000000); |