aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/glsl/GrGLSLTextureSampler.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-01-08 11:38:41 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-08 11:38:41 -0800
commit1a1efeacf7cc94a8c2977114dfe230fed3efc105 (patch)
treee91f058ed01fc4c25f410d7609e8123b1af776bc /src/gpu/glsl/GrGLSLTextureSampler.h
parent04d975ac34c97d4869f819d2ad7c9fda47c198af (diff)
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
Diffstat (limited to 'src/gpu/glsl/GrGLSLTextureSampler.h')
-rw-r--r--src/gpu/glsl/GrGLSLTextureSampler.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gpu/glsl/GrGLSLTextureSampler.h b/src/gpu/glsl/GrGLSLTextureSampler.h
index a4fbf550f2..fd8bcb26e9 100644
--- a/src/gpu/glsl/GrGLSLTextureSampler.h
+++ b/src/gpu/glsl/GrGLSLTextureSampler.h
@@ -21,17 +21,13 @@ public:
: fSamplerUniform(uniform)
, fConfig(access.getTexture()->config()) {
SkASSERT(kUnknown_GrPixelConfig != fConfig);
- memcpy(fSwizzle, access.getSwizzle(), 5);
}
GrPixelConfig config() const { return fConfig; }
- // this is .abcd
- const char* swizzle() const { return fSwizzle; }
private:
UniformHandle fSamplerUniform;
GrPixelConfig fConfig;
- char fSwizzle[5];
friend class GrGLSLShaderBuilder;
};