Index: src/gpu/effects/GrConvexPolyEffect.cpp |
diff --git a/src/gpu/effects/GrConvexPolyEffect.cpp b/src/gpu/effects/GrConvexPolyEffect.cpp |
index 714c68a9cef15c4611dab183a85f58bb19f0549b..c373b041fea6b186b74c08084bdb1dd52819cba9 100644 |
--- a/src/gpu/effects/GrConvexPolyEffect.cpp |
+++ b/src/gpu/effects/GrConvexPolyEffect.cpp |
@@ -10,7 +10,8 @@ |
#include "SkPathPriv.h" |
#include "gl/GrGLContext.h" |
#include "gl/GrGLFragmentProcessor.h" |
-#include "gl/builders/GrGLProgramBuilder.h" |
+#include "glsl/GrGLSLFragmentShaderBuilder.h" |
+#include "glsl/GrGLSLProgramBuilder.h" |
#include "glsl/GrGLSLProgramDataManager.h" |
////////////////////////////////////////////////////////////////////////////// |
@@ -105,13 +106,13 @@ void GLAARectEffect::emitCode(EmitArgs& args) { |
const char *rectName; |
// The rect uniform's xyzw refer to (left + 0.5, top + 0.5, right - 0.5, bottom - 0.5), |
// respectively. |
- fRectUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
+ fRectUniform = args.fBuilder->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
kVec4f_GrSLType, |
kDefault_GrSLPrecision, |
"rect", |
&rectName); |
- GrGLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
+ GrGLSLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
const char* fragmentPos = fsBuilder->fragmentPosition(); |
if (GrProcessorEdgeTypeIsAA(aare.getEdgeType())) { |
// The amount of coverage removed in x and y by the edges is computed as a pair of negative |
@@ -191,13 +192,13 @@ void GrGLConvexPolyEffect::emitCode(EmitArgs& args) { |
const GrConvexPolyEffect& cpe = args.fFp.cast<GrConvexPolyEffect>(); |
const char *edgeArrayName; |
- fEdgeUniform = args.fBuilder->addUniformArray(GrGLProgramBuilder::kFragment_Visibility, |
+ fEdgeUniform = args.fBuilder->addUniformArray(GrGLSLProgramBuilder::kFragment_Visibility, |
kVec3f_GrSLType, |
kDefault_GrSLPrecision, |
"edges", |
cpe.getEdgeCount(), |
&edgeArrayName); |
- GrGLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
+ GrGLSLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
fsBuilder->codeAppend("\t\tfloat alpha = 1.0;\n"); |
fsBuilder->codeAppend("\t\tfloat edge;\n"); |
const char* fragmentPos = fsBuilder->fragmentPosition(); |
@@ -304,7 +305,7 @@ void GrConvexPolyEffect::onComputeInvariantOutput(GrInvariantOutput* inout) cons |
} |
void GrConvexPolyEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, |
- GrProcessorKeyBuilder* b) const { |
+ GrProcessorKeyBuilder* b) const { |
GrGLConvexPolyEffect::GenKey(*this, caps, b); |
} |