Index: src/core/SkLightingShader.cpp |
diff --git a/src/core/SkLightingShader.cpp b/src/core/SkLightingShader.cpp |
index 2d7000aeface77a39c2be5b73d618e5db7624400..a1a09b7491570d349296ce1ae679c715214b38e9 100644 |
--- a/src/core/SkLightingShader.cpp |
+++ b/src/core/SkLightingShader.cpp |
@@ -131,7 +131,8 @@ private: |
#include "GrFragmentProcessor.h" |
#include "GrTextureAccess.h" |
#include "gl/GrGLFragmentProcessor.h" |
-#include "gl/builders/GrGLProgramBuilder.h" |
+#include "glsl/GrGLSLFragmentShaderBuilder.h" |
+#include "glsl/GrGLSLProgramBuilder.h" |
#include "glsl/GrGLSLProgramDataManager.h" |
#include "SkGr.h" |
#include "SkGrPriv.h" |
@@ -178,26 +179,26 @@ public: |
void emitCode(EmitArgs& args) override { |
- GrGLFragmentBuilder* fpb = args.fBuilder->getFragmentShaderBuilder(); |
+ GrGLSLFragmentBuilder* fpb = args.fBuilder->getFragmentShaderBuilder(); |
// add uniforms |
const char* lightDirUniName = nullptr; |
- fLightDirUni = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
+ fLightDirUni = args.fBuilder->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
kVec3f_GrSLType, kDefault_GrSLPrecision, |
"LightDir", &lightDirUniName); |
const char* lightColorUniName = nullptr; |
- fLightColorUni = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
+ fLightColorUni = args.fBuilder->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
kVec3f_GrSLType, kDefault_GrSLPrecision, |
"LightColor", &lightColorUniName); |
const char* ambientColorUniName = nullptr; |
- fAmbientColorUni = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
+ fAmbientColorUni = args.fBuilder->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
kVec3f_GrSLType, kDefault_GrSLPrecision, |
"AmbientColor", &ambientColorUniName); |
const char* xformUniName = nullptr; |
- fXformUni = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
+ fXformUni = args.fBuilder->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
kVec2f_GrSLType, kDefault_GrSLPrecision, |
"Xform", &xformUniName); |