aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLGpu.h
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-11-02 06:22:44 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-02 06:22:44 -0800
commit574a4c153d8a3f42b2806848f5c23cbf55e18bbb (patch)
tree0a4861682ed4c483061599e058983372a9c202f2 /src/gpu/gl/GrGLGpu.h
parent9dbec092512ca2759b46e24850ffde40dee3029f (diff)
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
Diffstat (limited to 'src/gpu/gl/GrGLGpu.h')
-rw-r--r--src/gpu/gl/GrGLGpu.h5
1 files changed, 5 insertions, 0 deletions
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);