Index: include/gpu/GrColor.h |
diff --git a/include/gpu/GrColor.h b/include/gpu/GrColor.h |
index 183781ac3ec27132b76360567d9a43f18f95142f..9f6eb1cde2873c05a9bffe68a2a5d2b1b45f8132 100644 |
--- a/include/gpu/GrColor.h |
+++ b/include/gpu/GrColor.h |
@@ -132,6 +132,8 @@ static inline uint32_t GrPixelConfigComponentMask(GrPixelConfig config) { |
kRGBA_GrColorComponentFlags, // kRGBA_4444_GrPixelConfig |
kRGBA_GrColorComponentFlags, // kRGBA_8888_GrPixelConfig |
kRGBA_GrColorComponentFlags, // kBGRA_8888_GrPixelConfig |
+ kRGB_GrColorComponentFlags, // kETC1_GrPixelConfig |
+ kA_GrColorComponentFlag, // kLATC_GrPixelConfig |
}; |
return kFlags[config]; |
@@ -142,6 +144,8 @@ static inline uint32_t GrPixelConfigComponentMask(GrPixelConfig config) { |
GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); |
GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); |
GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); |
+ GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig); |
+ GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig); |
GR_STATIC_ASSERT(SK_ARRAY_COUNT(kFlags) == kGrPixelConfigCnt); |
} |