Index: cc/resources/resource_format.h |
diff --git a/cc/resources/resource_format.h b/cc/resources/resource_format.h |
index d785ab7382b8db450ed675580712d5b0675bc7fd..62321430e316b4879ab9215ed0ca7aeb2bb457c3 100644 |
--- a/cc/resources/resource_format.h |
+++ b/cc/resources/resource_format.h |
@@ -18,6 +18,10 @@ enum ResourceFormat { |
ALPHA_8, |
LUMINANCE_8, |
RGB_565, |
+ ATC, |
+ ATC_IA, |
+ DXT1, |
+ DXT5, |
ETC1, |
RED_8, |
RESOURCE_FORMAT_MAX = RED_8, |
@@ -25,6 +29,19 @@ enum ResourceFormat { |
SkColorType ResourceFormatToSkColorType(ResourceFormat format); |
+bool IsFormatCompressed(ResourceFormat format); |
+ |
+enum ResourceFormatUsage { |
+ FORMAT_USAGE_NATIVE, // Fastest format. Also supported for GPU |
+ // rasterization. |
+ FORMAT_USAGE_TRANSLUCENT, // Memory efficient format that also supports alpha |
+ // channel. |
+ FORMAT_USAGE_OPAQUE, // Memory efficient format that only support color |
+ // channels. |
+ |
+ NUM_RESOURCE_FORMAT_USAGE |
+}; |
+ |
} // namespace cc |
#endif // CC_RESOURCES_RESOURCE_FORMAT_H_ |