aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2015-10-20 17:33:26 -0400
committerGravatar Brian Salomon <bsalomon@google.com>2015-10-20 17:33:26 -0400
commitb1dda9b4cd4488b01fb043ec9a937c42f5e71a2d (patch)
treebcd4cfe68d0661218d5e1e33e60093559dc6e279 /src
parent0c768a2f330e0e8f0883e174260928097d33e526 (diff)
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 .
Diffstat (limited to 'src')
-rw-r--r--src/effects/SkBlurMaskFilter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp
index 0b9701a472..dac54916bd 100644
--- a/src/effects/SkBlurMaskFilter.cpp
+++ b/src/effects/SkBlurMaskFilter.cpp
@@ -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,