From 574a4c153d8a3f42b2806848f5c23cbf55e18bbb Mon Sep 17 00:00:00 2001 From: egdaniel Date: Mon, 2 Nov 2015 06:22:44 -0800 Subject: Move shader compiling to ProgramBuilder and various ShaderBuilder cleanups. An additional positive of this CL is that GrGLShaderBuilder is now GL independent besides GrGLProgramBuilder BUG=skia: Review URL: https://codereview.chromium.org/1431433003 --- src/gpu/gl/GrGLGpu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gpu/gl/GrGLGpu.h') diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h index 396d488174..c10d79e744 100644 --- a/src/gpu/gl/GrGLGpu.h +++ b/src/gpu/gl/GrGLGpu.h @@ -128,6 +128,11 @@ public: bool isTestingOnlyBackendTexture(GrBackendObject id) const override; void deleteTestingOnlyBackendTexture(GrBackendObject id) const override; + /** If texture swizzling is available using tex parameters then it is preferred over mangling + the generated shader code. This potentially allows greater reuse of cached shaders. */ + static const GrGLenum* GetTexParamSwizzle(GrPixelConfig config, const GrGLCaps& caps); + + private: GrGLGpu(GrGLContext* ctx, GrContext* context); -- cgit v1.2.3