Index: src/effects/SkPerlinNoiseShader.cpp |
diff --git a/src/effects/SkPerlinNoiseShader.cpp b/src/effects/SkPerlinNoiseShader.cpp |
index c9096f4f939e2a1e189f8c1dee29670626fe9fb6..9c41e2ffcb41ab161fc43511eb9e3a8fbae1a619 100644 |
--- a/src/effects/SkPerlinNoiseShader.cpp |
+++ b/src/effects/SkPerlinNoiseShader.cpp |
@@ -598,14 +598,14 @@ void GrGLPerlinNoise::emitCode(EmitArgs& args) { |
GrGLSLUniformHandler* uniformHandler = args.fUniformHandler; |
SkString vCoords = fragBuilder->ensureFSCoords2D(args.fCoords, 0); |
- fBaseFrequencyUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fBaseFrequencyUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec2f_GrSLType, kDefault_GrSLPrecision, |
"baseFrequency"); |
const char* baseFrequencyUni = uniformHandler->getUniformCStr(fBaseFrequencyUni); |
const char* stitchDataUni = nullptr; |
if (pne.stitchTiles()) { |
- fStitchDataUni = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ fStitchDataUni = uniformHandler->addUniform(kFragment_GrShaderFlag, |
kVec2f_GrSLType, kDefault_GrSLPrecision, |
"stitchData"); |
stitchDataUni = uniformHandler->getUniformCStr(fStitchDataUni); |