Index: include/gpu/GrColor.h |
diff --git a/include/gpu/GrColor.h b/include/gpu/GrColor.h |
index f5757b93f5e902c8f3d94a8b3a045b37f5c580f2..9ccc638fc9fe6745d58ac954e13169e2dcb58394 100644 |
--- a/include/gpu/GrColor.h |
+++ b/include/gpu/GrColor.h |
@@ -142,6 +142,8 @@ enum GrColorComponentFlags { |
kB_GrColorComponentFlag = 1 << (GrColor_SHIFT_B / 8), |
kA_GrColorComponentFlag = 1 << (GrColor_SHIFT_A / 8), |
+ kNone_GrColorComponentFlags = 0, |
+ |
kRGB_GrColorComponentFlags = (kR_GrColorComponentFlag | kG_GrColorComponentFlag | |
kB_GrColorComponentFlag), |
@@ -149,6 +151,8 @@ enum GrColorComponentFlags { |
kB_GrColorComponentFlag | kA_GrColorComponentFlag) |
}; |
+GR_MAKE_BITFIELD_OPS(GrColorComponentFlags) |
+ |
static inline char GrColorComponentFlagToChar(GrColorComponentFlags component) { |
SkASSERT(SkIsPow2(component)); |
switch (component) { |