Add a class representing texture swizzle.
authorbsalomon <bsalomon@google.com>
Fri, 8 Jan 2016 19:38:41 +0000 (11:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 Jan 2016 19:38:41 +0000 (11:38 -0800)
commit1a1efeacf7cc94a8c2977114dfe230fed3efc105
treee91f058ed01fc4c25f410d7609e8123b1af776bc
parent04d975ac34c97d4869f819d2ad7c9fda47c198af
Add a class representing texture swizzle.

Store config swizzle GrGLCaps and shader swizzles in GrGLSLCaps.

Remove GrTextureAccess's swizzle and update users of it to swizzle in their shader code.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1567733005

Review URL: https://codereview.chromium.org/1567733005
14 files changed:
include/gpu/GrTextureAccess.h
include/gpu/GrTypesPriv.h
src/effects/SkColorCubeFilter.cpp
src/effects/SkTableColorFilter.cpp
src/gpu/GrSwizzle.h [new file with mode: 0644]
src/gpu/GrTextureAccess.cpp
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLCaps.h
src/gpu/gl/GrGLGpu.cpp
src/gpu/gl/GrGLProgramDesc.cpp
src/gpu/glsl/GrGLSLCaps.cpp
src/gpu/glsl/GrGLSLCaps.h
src/gpu/glsl/GrGLSLShaderBuilder.cpp
src/gpu/glsl/GrGLSLTextureSampler.h