Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index 776083c079a7634b6631d9c0a7eac5c939cae4a1..b9411b2e12c7652162ce9c19981b9c3c14c3b321 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -18,7 +18,8 @@ |
#include "GrInvariantOutput.h" |
#include "effects/GrTextureDomain.h" |
#include "gl/GrGLFragmentProcessor.h" |
-#include "gl/builders/GrGLProgramBuilder.h" |
+#include "glsl/GrGLSLFragmentShaderBuilder.h" |
+#include "glsl/GrGLSLProgramBuilder.h" |
#include "glsl/GrGLSLProgramDataManager.h" |
#endif |
@@ -547,8 +548,8 @@ GrGLDisplacementMapEffect::~GrGLDisplacementMapEffect() { |
void GrGLDisplacementMapEffect::emitCode(EmitArgs& args) { |
const GrTextureDomain& domain = args.fFp.cast<GrDisplacementMapEffect>().domain(); |
- fScaleUni = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
- kVec2f_GrSLType, kDefault_GrSLPrecision, "Scale"); |
+ fScaleUni = args.fBuilder->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
+ kVec2f_GrSLType, kDefault_GrSLPrecision, "Scale"); |
const char* scaleUni = args.fBuilder->getUniformCStr(fScaleUni); |
const char* dColor = "dColor"; |
const char* cCoords = "cCoords"; |
@@ -556,7 +557,7 @@ void GrGLDisplacementMapEffect::emitCode(EmitArgs& args) { |
// a number smaller than that to approximate 0, but |
// leave room for 32-bit float GPU rounding errors. |
- GrGLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
+ GrGLSLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
fsBuilder->codeAppendf("\t\tvec4 %s = ", dColor); |
fsBuilder->appendTextureLookup(args.fSamplers[0], args.fCoords[0].c_str(), |
args.fCoords[0].getType()); |