aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-04-05 09:26:15 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-05 14:00:50 +0000
commit33aa2c7b5c351c17a11ce2bf7d7cd70a3d86cecc (patch)
tree6fbc30a47986750570d00026ddb3c89a0c3a55df /include/private
parentbf17eecf46b246d354b926aacc41e9ea882df49d (diff)
Allow FPs to elevate default precision for the entire fragment program
Currently, GrConfigConversionEffect is able to round-trip on many mobile GPUs because it uses highp for all intermediate variables (including the texture fetch result). Separating the texture sample into a different processor breaks that. This is a blunt instrument, not to be used lightly. This reverts commit dffe9827b18444d1426859d9035f9f0087201f44. Bug: skia: Change-Id: I940af3256c47e6672a008d516db9e55669672ca3 Reviewed-on: https://skia-review.googlesource.com/11345 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/private')
-rw-r--r--include/private/GrGLSL.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/private/GrGLSL.h b/include/private/GrGLSL.h
index ed33c1cf4c..66f7be84d1 100644
--- a/include/private/GrGLSL.h
+++ b/include/private/GrGLSL.h
@@ -74,6 +74,8 @@ static inline const char* GrGLSLPrecisionString(GrSLPrecision p) {
return "mediump";
case kHigh_GrSLPrecision:
return "highp";
+ case kDefault_GrSLPrecision:
+ return "";
default:
SkFAIL("Unexpected precision type.");
return "";