Index: src/gpu/gl/GrGLUniformHandler.h |
diff --git a/src/gpu/gl/GrGLUniformHandler.h b/src/gpu/gl/GrGLUniformHandler.h |
index 1dac8d959e7a0a60b36241af570e03d79962dabe..3656d3a10810db2215d56036a5534e196cd58ae8 100644 |
--- a/src/gpu/gl/GrGLUniformHandler.h |
+++ b/src/gpu/gl/GrGLUniformHandler.h |
@@ -11,6 +11,7 @@ |
#include "glsl/GrGLSLUniformHandler.h" |
#include "gl/GrGLProgramDataManager.h" |
+#include "gl/GrGLSampler.h" |
class GrGLCaps; |
@@ -38,6 +39,17 @@ private: |
int arrayCount, |
const char** outName) override; |
+ SamplerHandle internalAddSampler(uint32_t visibility, |
+ GrPixelConfig config, |
+ GrSLType type, |
+ GrSLPrecision precision, |
+ const char* name) override; |
+ |
+ int numSamplers() const override { return fSamplers.count(); } |
+ const GrGLSLSampler& getSampler(SamplerHandle handle) const override { |
+ return fSamplers[handle.toIndex()]; |
+ } |
+ |
void appendUniformDecls(GrShaderFlags visibility, SkString*) const override; |
// Manually set uniform locations for all our uniforms. |
@@ -53,6 +65,8 @@ private: |
UniformInfoArray fUniforms; |
+ SkTArray<GrGLSampler> fSamplers; |
+ |
friend class GrGLProgramBuilder; |
typedef GrGLSLUniformHandler INHERITED; |