Index: include/core/SkColorPriv.h |
diff --git a/include/core/SkColorPriv.h b/include/core/SkColorPriv.h |
index 6347660dbc99e554ce33be73db35e4258dfd50c9..bd0e040566cb0408c8ea5697d4e7c2c20781de43 100644 |
--- a/include/core/SkColorPriv.h |
+++ b/include/core/SkColorPriv.h |
@@ -71,6 +71,11 @@ |
SK_B32_SHIFT == SK_BGRA_B32_SHIFT) |
+#define SK_A_INDEX (SK_A32_SHIFT/8) |
+#define SK_R_INDEX (SK_R32_SHIFT/8) |
+#define SK_G_INDEX (SK_G32_SHIFT/8) |
+#define SK_B_INDEX (SK_B32_SHIFT/8) |
+ |
#if defined(SK_PMCOLOR_IS_RGBA) && !LOCAL_PMCOLOR_SHIFTS_EQUIVALENT_TO_RGBA |
#error "SK_PMCOLOR_IS_RGBA does not match SK_*32_SHIFT values" |
#endif |