diff options
Diffstat (limited to 'src/gpu/gl/builders/GrGLProgramBuilder.h')
-rw-r--r-- | src/gpu/gl/builders/GrGLProgramBuilder.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.h b/src/gpu/gl/builders/GrGLProgramBuilder.h index f6397d8871..7fa8ba266c 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.h +++ b/src/gpu/gl/builders/GrGLProgramBuilder.h @@ -145,8 +145,9 @@ public: protected: typedef GrTAllocator<GrGLShaderVar> VarArray; - GrGLProgramBuilder(GrGpuGL*, const GrGLProgramDesc&); + GrGLProgramBuilder(GrGpuGL*, const GrOptDrawState&, const GrGLProgramDesc&); + const GrOptDrawState& optState() const { return fOptState; } const GrGLProgramDesc& desc() const { return fDesc; } // Helper for emitEffects(). @@ -326,6 +327,7 @@ private: GrGLFragmentProcessorEmitter fGrProcessorEmitter; + const GrOptDrawState& fOptState; const GrGLProgramDesc& fDesc; GrGpuGL* fGpu; UniformInfoArray fUniforms; |