diff options
author | 2015-11-03 10:33:14 -0800 | |
---|---|---|
committer | 2015-11-03 10:33:14 -0800 | |
commit | 0c2999974d189ea257f82c9b7672d9afda52f6c2 (patch) | |
tree | 96a31dd38b3252f3aadafde6d43dc2ab96167b73 /src/gpu/gl/GrGLGpu.h | |
parent | 0575131e579641e76798e58a8bb6786f9eebd5f2 (diff) |
Revert of Create swizzle table inside of glsl caps (patchset #12 id:210001 of https://codereview.chromium.org/1420033005/ )
Reason for revert:
Breaking gm's on nexus7 and s3
Original issue's description:
> Create swizzle table inside of glsl caps
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/4036674952f341dab0695c3b054fefa5bb8cdec1
TBR=bsalomon@google.com,robertphillips@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/1426653008
Diffstat (limited to 'src/gpu/gl/GrGLGpu.h')
-rw-r--r-- | src/gpu/gl/GrGLGpu.h | 5 |
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); |