diff options
author | 2013-03-28 13:46:42 +0000 | |
---|---|---|
committer | 2013-03-28 13:46:42 +0000 | |
commit | b8eb2e89edf914caf5479baeffcb670d3e93f496 (patch) | |
tree | 328527b349cf6cc24c07be4f466ebe35a34c230f /include/gpu/GrTextureAccess.h | |
parent | 51c81123afbf9a09fda43ca2d287fcf4f5593e9c (diff) |
Make GrGLShaderBuilder::TextureSampler extract only required info from GrTextureAccess.
This will make it possible to init a TextureSampler without a texture or a specific config.
Also unify two separate bitfields of color components in GPU code.
Review URL: https://codereview.chromium.org/13121002
git-svn-id: http://skia.googlecode.com/svn/trunk@8428 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrTextureAccess.h')
-rw-r--r-- | include/gpu/GrTextureAccess.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/gpu/GrTextureAccess.h b/include/gpu/GrTextureAccess.h index b03e6e6dc9..e5ea535d99 100644 --- a/include/gpu/GrTextureAccess.h +++ b/include/gpu/GrTextureAccess.h @@ -162,16 +162,8 @@ public: */ const char* getSwizzle() const { return fSwizzle; } - enum { - kR_SwizzleFlag = 0x1, - kG_SwizzleFlag = 0x2, - kB_SwizzleFlag = 0x4, - kA_SwizzleFlag = 0x8, - - kRGB_SwizzleMask = (kR_SwizzleFlag | kG_SwizzleFlag | kB_SwizzleFlag), - }; - - /** Returns a mask indicating which components are referenced in the swizzle. */ + /** Returns a mask indicating which components are referenced in the swizzle. The return + is a bitfield of GrColorComponentFlags. */ uint32_t swizzleMask() const { return fSwizzleMask; } const GrTextureParams& getParams() const { return fParams; } |