| Index: src/gpu/glsl/GrGLSLProgramBuilder.h
|
| diff --git a/src/gpu/glsl/GrGLSLProgramBuilder.h b/src/gpu/glsl/GrGLSLProgramBuilder.h
|
| index 3ce7daf349afa9ad6c66ee086505ec0302e2ddca..c175fc6adf6e575db7de71e4cb6ac14c714f1ab8 100644
|
| --- a/src/gpu/glsl/GrGLSLProgramBuilder.h
|
| +++ b/src/gpu/glsl/GrGLSLProgramBuilder.h
|
| @@ -41,6 +41,10 @@ public:
|
|
|
| void appendUniformDecls(GrShaderFlags visibility, SkString*) const;
|
|
|
| + typedef GrGLSLUniformHandler::SamplerHandle SamplerHandle;
|
| +
|
| + const GrGLSLSampler& getSampler(SamplerHandle handle) const;
|
| +
|
| // Handles for program uniforms (other than per-effect uniforms)
|
| struct BuiltinUniformHandles {
|
| UniformHandle fRTAdjustmentUni;
|
| @@ -104,8 +108,6 @@ protected:
|
|
|
| void finalizeShaders();
|
|
|
| - SkTArray<UniformHandle> fSamplerUniforms;
|
| -
|
| private:
|
| // reset is called by program creator between each processor's emit code. It increments the
|
| // stage offset for variable name mangling, and also ensures verfication variables in the
|
| @@ -146,14 +148,15 @@ private:
|
| const GrGLSLExpr4& coverageIn,
|
| bool ignoresCoverage,
|
| GrPixelLocalStorageState plsState);
|
| +
|
| void emitSamplers(const GrProcessor& processor,
|
| - GrGLSLSampler::SamplerArray* outTexSamplers,
|
| - GrGLSLSampler::SamplerArray* outBufferSamplers);
|
| + SkTArray<SamplerHandle>* outTexSamplers,
|
| + SkTArray<SamplerHandle>* outBufferSamplers);
|
| void emitSampler(GrSLType samplerType,
|
| GrPixelConfig,
|
| const char* name,
|
| GrShaderFlags visibility,
|
| - GrGLSLSampler::SamplerArray* outSamplers);
|
| + SkTArray<SamplerHandle>* outSamplers);
|
| void emitFSOutputSwizzle(bool hasSecondaryOutput);
|
| bool checkSamplerCounts();
|
|
|
|
|