diff options
author | 2015-10-26 08:38:25 -0700 | |
---|---|---|
committer | 2015-10-26 08:38:26 -0700 | |
commit | cb7ba1eafce89a2f90239a7be56050fa98a47b9f (patch) | |
tree | eb332246d1e7ec586c5074c30b0714982f2879cf /src/gpu/gl/GrGLGLSL.cpp | |
parent | 5c3ea4cd3921e8904d4f201bcdedfd5b8a726542 (diff) |
Make appending default precision be controled by GLSL
BUG=skia:
Review URL: https://codereview.chromium.org/1403373012
Diffstat (limited to 'src/gpu/gl/GrGLGLSL.cpp')
-rwxr-xr-x | src/gpu/gl/GrGLGLSL.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gpu/gl/GrGLGLSL.cpp b/src/gpu/gl/GrGLGLSL.cpp index 4d2bf9794b..98a2386161 100755 --- a/src/gpu/gl/GrGLGLSL.cpp +++ b/src/gpu/gl/GrGLGLSL.cpp @@ -48,21 +48,3 @@ bool GrGLGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation } } -void GrGLAppendGLSLDefaultFloatPrecisionDeclaration(GrSLPrecision p, GrGLStandard s, SkString* out) { - // Desktop GLSL has added precision qualifiers but they don't do anything. - if (kGLES_GrGLStandard == s) { - switch (p) { - case kHigh_GrSLPrecision: - out->append("precision highp float;\n"); - break; - case kMedium_GrSLPrecision: - out->append("precision mediump float;\n"); - break; - case kLow_GrSLPrecision: - out->append("precision lowp float;\n"); - break; - default: - SkFAIL("Unknown precision value."); - } - } -} |