diff options
author | 2016-11-18 11:58:54 -0500 | |
---|---|---|
committer | 2016-11-21 18:01:43 +0000 | |
commit | 101b844d6ba031de5c4e95b43f9292f266799237 (patch) | |
tree | 138593a7d161695e26b691db6557fd1b22914b4d /src/gpu/gl/GrGLProgramDataManager.h | |
parent | 3502c5cc736f131674147ed19f1942f83f5fb9a4 (diff) |
Remove GrGLSLSampler type and subclasses
GrGLSLUniformManager and GrGLSLProgramDataManager subclasses handle sampler variation across GPU backends.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5002
Change-Id: I968b006bab978c2fa209d1f7eda710c298d1212f
Reviewed-on: https://skia-review.googlesource.com/5002
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLProgramDataManager.h')
-rw-r--r-- | src/gpu/gl/GrGLProgramDataManager.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gpu/gl/GrGLProgramDataManager.h b/src/gpu/gl/GrGLProgramDataManager.h index 30c4a63ebc..fa1456dcc7 100644 --- a/src/gpu/gl/GrGLProgramDataManager.h +++ b/src/gpu/gl/GrGLProgramDataManager.h @@ -11,7 +11,6 @@ #include "glsl/GrGLSLProgramDataManager.h" #include "GrAllocator.h" -#include "gl/GrGLSampler.h" #include "gl/GrGLTypes.h" #include "glsl/GrGLSLShaderVar.h" @@ -38,6 +37,7 @@ public: GrGLint fLocation; }; + // This uses an allocator rather than array so that the GrGLSLShaderVars don't move in memory // after they are inserted. Users of GrGLShaderBuilder get refs to the vars and ptrs to their // name strings. Otherwise, we'd have to hand out copies. @@ -48,7 +48,7 @@ public: const VaryingInfoArray&); - void setSamplers(const SkTArray<GrGLSampler>& samplers) const; + void setSamplers(const UniformInfoArray& samplers) const; /** Functions for uploading uniform values. The varities ending in v can be used to upload to an * array of uniforms. arrayCount must be <= the array count of the uniform. @@ -82,12 +82,11 @@ private: }; struct Uniform { - GrGLint fVSLocation; - GrGLint fFSLocation; - SkDEBUGCODE( - GrSLType fType; - int fArrayCount; - ); + GrGLint fLocation; +#ifdef SK_DEBUG + GrSLType fType; + int fArrayCount; +#endif }; enum { |