Index: src/gpu/effects/GrBezierEffect.cpp |
diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp |
index d6044cb34ab72e9fb4e53194ac9039c9318d3a17..fe509b60a4ba6412f374e33d6a6602693de77576 100644 |
--- a/src/gpu/effects/GrBezierEffect.cpp |
+++ b/src/gpu/effects/GrBezierEffect.cpp |
@@ -7,7 +7,7 @@ |
#include "GrBezierEffect.h" |
-#include "gl/builders/GrGLProgramBuilder.h" |
+#include "gl/builders/GrGLFullProgramBuilder.h" |
#include "gl/GrGLProcessor.h" |
#include "gl/GrGLSL.h" |
#include "gl/GrGLGeometryProcessor.h" |
@@ -17,7 +17,7 @@ |
public: |
GrGLConicEffect(const GrBackendProcessorFactory&, const GrProcessor&); |
- virtual void emitCode(GrGLGPBuilder* builder, |
+ virtual void emitCode(GrGLFullProgramBuilder* builder, |
const GrGeometryProcessor& geometryProcessor, |
const GrProcessorKey& key, |
const char* outputColor, |
@@ -42,7 +42,7 @@ |
fEdgeType = ce.getEdgeType(); |
} |
-void GrGLConicEffect::emitCode(GrGLGPBuilder* builder, |
+void GrGLConicEffect::emitCode(GrGLFullProgramBuilder* builder, |
const GrGeometryProcessor& geometryProcessor, |
const GrProcessorKey& key, |
const char* outputColor, |
@@ -55,10 +55,10 @@ |
&vsName, &fsName); |
const GrShaderVar& inConicCoeffs = geometryProcessor.cast<GrConicEffect>().inConicCoeffs(); |
- GrGLVertexBuilder* vsBuilder = builder->getVertexShaderBuilder(); |
+ GrGLVertexShaderBuilder* vsBuilder = builder->getVertexShaderBuilder(); |
vsBuilder->codeAppendf("%s = %s;", vsName, inConicCoeffs.c_str()); |
- GrGLGPFragmentBuilder* fsBuilder = builder->getFragmentShaderBuilder(); |
+ GrGLProcessorFragmentShaderBuilder* fsBuilder = builder->getFragmentShaderBuilder(); |
fsBuilder->codeAppend("float edgeAlpha;"); |
switch (fEdgeType) { |
@@ -171,7 +171,7 @@ |
public: |
GrGLQuadEffect(const GrBackendProcessorFactory&, const GrProcessor&); |
- virtual void emitCode(GrGLGPBuilder* builder, |
+ virtual void emitCode(GrGLFullProgramBuilder* builder, |
const GrGeometryProcessor& geometryProcessor, |
const GrProcessorKey& key, |
const char* outputColor, |
@@ -196,7 +196,7 @@ |
fEdgeType = ce.getEdgeType(); |
} |
-void GrGLQuadEffect::emitCode(GrGLGPBuilder* builder, |
+void GrGLQuadEffect::emitCode(GrGLFullProgramBuilder* builder, |
const GrGeometryProcessor& geometryProcessor, |
const GrProcessorKey& key, |
const char* outputColor, |
@@ -206,11 +206,11 @@ |
const char *vsName, *fsName; |
builder->addVarying(kVec4f_GrSLType, "HairQuadEdge", &vsName, &fsName); |
- GrGLVertexBuilder* vsBuilder = builder->getVertexShaderBuilder(); |
+ GrGLVertexShaderBuilder* vsBuilder = builder->getVertexShaderBuilder(); |
const GrShaderVar& inHairQuadEdge = geometryProcessor.cast<GrQuadEffect>().inHairQuadEdge(); |
vsBuilder->codeAppendf("%s = %s;", vsName, inHairQuadEdge.c_str()); |
- GrGLGPFragmentBuilder* fsBuilder = builder->getFragmentShaderBuilder(); |
+ GrGLProcessorFragmentShaderBuilder* fsBuilder = builder->getFragmentShaderBuilder(); |
fsBuilder->codeAppendf("float edgeAlpha;"); |
switch (fEdgeType) { |
@@ -309,7 +309,7 @@ |
public: |
GrGLCubicEffect(const GrBackendProcessorFactory&, const GrProcessor&); |
- virtual void emitCode(GrGLGPBuilder* builder, |
+ virtual void emitCode(GrGLFullProgramBuilder* builder, |
const GrGeometryProcessor& geometryProcessor, |
const GrProcessorKey& key, |
const char* outputColor, |
@@ -334,7 +334,7 @@ |
fEdgeType = ce.getEdgeType(); |
} |
-void GrGLCubicEffect::emitCode(GrGLGPBuilder* builder, |
+void GrGLCubicEffect::emitCode(GrGLFullProgramBuilder* builder, |
const GrGeometryProcessor& geometryProcessor, |
const GrProcessorKey& key, |
const char* outputColor, |
@@ -346,11 +346,11 @@ |
builder->addVarying(kVec4f_GrSLType, "CubicCoeffs", |
&vsName, &fsName, GrGLShaderVar::kHigh_Precision); |
- GrGLVertexBuilder* vsBuilder = builder->getVertexShaderBuilder(); |
+ GrGLVertexShaderBuilder* vsBuilder = builder->getVertexShaderBuilder(); |
const GrShaderVar& inCubicCoeffs = geometryProcessor.cast<GrCubicEffect>().inCubicCoeffs(); |
vsBuilder->codeAppendf("%s = %s;", vsName, inCubicCoeffs.c_str()); |
- GrGLGPFragmentBuilder* fsBuilder = builder->getFragmentShaderBuilder(); |
+ GrGLProcessorFragmentShaderBuilder* fsBuilder = builder->getFragmentShaderBuilder(); |
GrGLShaderVar edgeAlpha("edgeAlpha", kFloat_GrSLType, 0, GrGLShaderVar::kHigh_Precision); |
GrGLShaderVar dklmdx("dklmdx", kVec3f_GrSLType, 0, GrGLShaderVar::kHigh_Precision); |