diff options
author | Brian Salomon <bsalomon@google.com> | 2018-06-19 16:28:41 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-19 21:23:18 +0000 |
commit | 23c55b6b18a7f9bb93a303914f89c1d8a576ec81 (patch) | |
tree | f161151502a80056a7a2c1e7ad7e609edda5eafb /src/gpu/glsl/GrGLSL.cpp | |
parent | 0e4041f5c962dd16c4a69cbd9ff35685e9519ff3 (diff) |
Move GrGLSL.h from include/private to src/gpu/glsl.
Nothing public was including this and it was included unnecessarily in many places.
Change-Id: Iee960b3e67981ab41af7442cc43391f2f57eb551
Reviewed-on: https://skia-review.googlesource.com/135787
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/glsl/GrGLSL.cpp')
-rw-r--r-- | src/gpu/glsl/GrGLSL.cpp | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/src/gpu/glsl/GrGLSL.cpp b/src/gpu/glsl/GrGLSL.cpp index 4791a0ee22..67fe2995fa 100644 --- a/src/gpu/glsl/GrGLSL.cpp +++ b/src/gpu/glsl/GrGLSL.cpp @@ -5,26 +5,8 @@ * found in the LICENSE file. */ +#include "GrGLSL.h" #include "GrShaderCaps.h" -#include "SkString.h" -#include "../private/GrGLSL.h" - -bool GrGLSLSupportsNamedFragmentShaderOutputs(GrGLSLGeneration gen) { - switch (gen) { - case k110_GrGLSLGeneration: - return false; - case k130_GrGLSLGeneration: - case k140_GrGLSLGeneration: - case k150_GrGLSLGeneration: - case k330_GrGLSLGeneration: - case k400_GrGLSLGeneration: - case k420_GrGLSLGeneration: - case k310es_GrGLSLGeneration: - case k320es_GrGLSLGeneration: - return true; - } - return false; -} const char* GrGLSLTypeString(const GrShaderCaps* shaderCaps, GrSLType t) { switch (t) { @@ -111,23 +93,3 @@ const char* GrGLSLTypeString(const GrShaderCaps* shaderCaps, GrSLType t) { SK_ABORT("Unknown shader var type."); return ""; // suppress warning } - -void GrGLSLAppendDefaultFloatPrecisionDeclaration(GrSLPrecision p, - const GrShaderCaps& shaderCaps, - SkString* out) { - if (shaderCaps.usesPrecisionModifiers()) { - 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: - SK_ABORT("Unknown precision value."); - } - } -} |