diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2018-01-23 16:39:42 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-23 22:23:30 +0000 |
commit | 29b3434e48ca41672266ac40f5b9e8f8a0405cb5 (patch) | |
tree | 2524748fc90c30ae887e6a086e6bb76ffaa05e81 /src/gpu/glsl/GrGLSLUniformHandler.h | |
parent | 8524c30a971cd22fe1e3e0fd3db5988fe23272b6 (diff) |
Revert "converted vertex shaders to device coords"
This reverts commit e7e81c15c144b8133f696d0744ed9f7e8d06e936.
Reason for revert: Chrome perf regressions
Bug: skia:
Change-Id: I17fadc97c4b8e80bfdccbf123554614a00c58473
Reviewed-on: https://skia-review.googlesource.com/99040
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/gpu/glsl/GrGLSLUniformHandler.h')
-rw-r--r-- | src/gpu/glsl/GrGLSLUniformHandler.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/glsl/GrGLSLUniformHandler.h b/src/gpu/glsl/GrGLSLUniformHandler.h index 662486eebe..e1511c2578 100644 --- a/src/gpu/glsl/GrGLSLUniformHandler.h +++ b/src/gpu/glsl/GrGLSLUniformHandler.h @@ -12,9 +12,6 @@ #include "GrShaderVar.h" #include "GrSwizzle.h" -// variable names beginning with this prefix will not be mangled -#define GR_NO_MANGLE_PREFIX "sk_" - class GrGLSLProgramBuilder; class GrGLSLUniformHandler { @@ -54,8 +51,7 @@ public: int arrayCount, const char** outName = nullptr) { SkASSERT(!GrSLTypeIsCombinedSamplerType(type)); - bool mangle = strncmp(name, GR_NO_MANGLE_PREFIX, strlen(GR_NO_MANGLE_PREFIX)); - return this->internalAddUniformArray(visibility, type, precision, name, mangle, arrayCount, + return this->internalAddUniformArray(visibility, type, precision, name, true, arrayCount, outName); } @@ -65,8 +61,7 @@ public: int arrayCount, const char** outName = nullptr) { SkASSERT(!GrSLTypeIsCombinedSamplerType(type)); - bool mangle = strncmp(name, GR_NO_MANGLE_PREFIX, strlen(GR_NO_MANGLE_PREFIX)); - return this->internalAddUniformArray(visibility, type, kDefault_GrSLPrecision, name, mangle, + return this->internalAddUniformArray(visibility, type, kDefault_GrSLPrecision, name, true, arrayCount, outName); } |