Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: include/gpu/GrTextureAccess.h

Issue 13121002: Make GrGLShaderBuilder::TextureSampler extract only required info from GrTextureAccess. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/gpu/GrTextureAccess.h
===================================================================
--- include/gpu/GrTextureAccess.h (revision 8417)
+++ include/gpu/GrTextureAccess.h (working copy)
@@ -162,16 +162,8 @@
*/
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; }
« no previous file with comments | « include/gpu/GrEffect.h ('k') | include/gpu/GrTypes.h » ('j') | src/gpu/gl/GrGLShaderBuilder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698