Index: src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
index 6de5f696d0e7775d33d2f6474e2e9c41823b3621..49be12d8badf82f2aa910b9fd00f1c449568c1fc 100644 |
--- a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
@@ -147,6 +147,7 @@ const char* GrGLFragmentShaderBuilder::fragmentPosition() { |
fProgramBuilder->fUniformHandles.fRTHeightUni = |
fProgramBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
kFloat_GrSLType, |
+ kDefault_GrSLPrecision, |
"RTHeight", |
&rtHeightName); |
@@ -199,16 +200,19 @@ void GrGLFragmentShaderBuilder::emitCodeToReadDstTexture() { |
fProgramBuilder->fUniformHandles.fDstCopySamplerUni = |
fProgramBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
kSampler2D_GrSLType, |
+ kDefault_GrSLPrecision, |
"DstCopySampler", |
&dstCopySamplerName); |
fProgramBuilder->fUniformHandles.fDstCopyTopLeftUni = |
fProgramBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
kVec2f_GrSLType, |
+ kDefault_GrSLPrecision, |
"DstCopyUpperLeft", |
&dstCopyTopLeftName); |
fProgramBuilder->fUniformHandles.fDstCopyScaleUni = |
fProgramBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
kVec2f_GrSLType, |
+ kDefault_GrSLPrecision, |
"DstCopyCoordScale", |
&dstCopyCoordScaleName); |
const char* fragPos = this->fragmentPosition(); |