Use the current OpengGL standard to determine blur precision, rather than kGLES

TBR=ethannicholas@google.com,robertphillips@google.com

Review URL: https://codereview.chromium.org/1408123004 .
This commit is contained in:
Brian Salomon 2015-10-20 17:33:26 -04:00
parent 0c768a2f33
commit b1dda9b4cd

View File

@ -721,7 +721,8 @@ void GrGLRectBlurEffect::emitCode(EmitArgs& args) {
const char *rectName;
const char *profileSizeName;
const char* precisionString = GrGLShaderVar::PrecisionString(fPrecision, kGLES_GrGLStandard);
const char* precisionString = GrGLShaderVar::PrecisionString(
fPrecision, args.fBuilder->ctxInfo().standard());
fProxyRectUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility,
kVec4f_GrSLType,
fPrecision,