Index: src/gpu/effects/GrMatrixConvolutionEffect.cpp |
diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.cpp b/src/gpu/effects/GrMatrixConvolutionEffect.cpp |
index a7f829e766e3107fc7c5932101b1b6553841c7b8..ac7889d0b290a754985dbc2d1308edc01ed93060 100644 |
--- a/src/gpu/effects/GrMatrixConvolutionEffect.cpp |
+++ b/src/gpu/effects/GrMatrixConvolutionEffect.cpp |
@@ -40,19 +40,19 @@ void GrGLMatrixConvolutionEffect::emitCode(EmitArgs& args) { |
int kHeight = mce.kernelSize().height(); |
GrGLSLUniformHandler* uniformHandler = args.fUniformHandler; |
- fImageIncrementUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fImageIncrementUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec2f_GrSLType, kDefault_GrSLPrecision, |
"ImageIncrement"); |
- fKernelUni = uniformHandler->addUniformArray(GrGLSLUniformHandler::kFragment_Visibility, |
+ fKernelUni = uniformHandler->addUniformArray(kFragment_GrShaderFlag, |
kFloat_GrSLType, kDefault_GrSLPrecision, |
"Kernel", |
kWidth * kHeight); |
- fKernelOffsetUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fKernelOffsetUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec2f_GrSLType, kDefault_GrSLPrecision, |
"KernelOffset"); |
- fGainUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fGainUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kFloat_GrSLType, kDefault_GrSLPrecision, "Gain"); |
- fBiasUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fBiasUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kFloat_GrSLType, kDefault_GrSLPrecision, "Bias"); |
const char* kernelOffset = uniformHandler->getUniformCStr(fKernelOffsetUni); |