Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 03ebfd657ba7b581811be2a5f120253672a6cc1c..7a4290332dfb3087185e475786c34fe8f4ddccb6 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -917,26 +917,26 @@ void GrGLGradientEffect::emitUniforms(GrGLSLUniformHandler* uniformHandler, |
const GrGradientEffect& ge) { |
if (SkGradientShaderBase::kTwo_GpuColorType == ge.getColorType()) { // 2 Color case |
- fColorStartUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fColorStartUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec4f_GrSLType, kDefault_GrSLPrecision, |
"GradientStartColor"); |
- fColorEndUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fColorEndUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec4f_GrSLType, kDefault_GrSLPrecision, |
"GradientEndColor"); |
} else if (SkGradientShaderBase::kThree_GpuColorType == ge.getColorType()) { // 3 Color Case |
- fColorStartUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fColorStartUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec4f_GrSLType, kDefault_GrSLPrecision, |
"GradientStartColor"); |
- fColorMidUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fColorMidUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec4f_GrSLType, kDefault_GrSLPrecision, |
"GradientMidColor"); |
- fColorEndUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fColorEndUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec4f_GrSLType, kDefault_GrSLPrecision, |
"GradientEndColor"); |
} else { // if not a fast case |
- fFSYUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fFSYUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kFloat_GrSLType, kDefault_GrSLPrecision, |
"GradientYCoordFS"); |
} |