diff options
Diffstat (limited to 'libs/hwui/Program.h')
| -rw-r--r-- | libs/hwui/Program.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h index fc7d134..af1e4a7 100644 --- a/libs/hwui/Program.h +++ b/libs/hwui/Program.h @@ -25,6 +25,7 @@ #include <SkXfermode.h> #include "Debug.h" +#include "FloatColor.h" #include "Matrix.h" #include "Properties.h" @@ -102,7 +103,7 @@ typedef uint64_t programid; * A ProgramDescription must be used in conjunction with a ProgramCache. */ struct ProgramDescription { - enum ColorModifier { + enum ColorFilterMode { kColorNone = 0, kColorMatrix, kColorBlend @@ -148,7 +149,7 @@ struct ProgramDescription { GLenum bitmapWrapT; // Color operations - ColorModifier colorOp; + ColorFilterMode colorOp; SkXfermode::Mode colorMode; // Framebuffer blending (requires Extensions.hasFramebufferFetch()) @@ -281,8 +282,6 @@ struct ProgramDescription { programid k = key(); PROGRAM_LOGD("%s (key = 0x%.8x%.8x)", message, uint32_t(k >> 32), uint32_t(k & 0xffffffff)); -#else - (void)message; #endif } @@ -365,15 +364,10 @@ public: /** * Sets the color associated with this shader. */ - void setColor(const float r, const float g, const float b, const float a); - - /** - * Name of the position attribute. - */ - int position; + void setColor(FloatColor color); /** - * Name of the texCoords attribute if it exists, -1 otherwise. + * Name of the texCoords attribute if it exists (kBindingTexCoords), -1 otherwise. */ int texCoords; |
