Index: cc/resources/resource_format.h |
diff --git a/cc/resources/resource_format.h b/cc/resources/resource_format.h |
index d785ab7382b8db450ed675580712d5b0675bc7fd..4606a3446024eca2fc65b2cbf649bdceb1d69e71 100644 |
--- a/cc/resources/resource_format.h |
+++ b/cc/resources/resource_format.h |
@@ -25,6 +25,18 @@ enum ResourceFormat { |
SkColorType ResourceFormatToSkColorType(ResourceFormat format); |
+bool IsFormatCompressed(ResourceFormat format); |
+ |
+enum ResourceFormatUsage { |
reveman
2015/01/13 16:25:55
Do we need this? I found it a bit hard to follow h
peterp
2015/01/14 12:33:36
NATIVE will generally map to RGBA_4444, RGBA_8888
|
+ // Fastest format. Also supported for GPU rasterization. |
+ FORMAT_USAGE_NATIVE, |
+ // Memory efficient format that also supports alpha channel. |
+ FORMAT_USAGE_TRANSLUSCENT, |
+ // Memory efficient format that only supports color channels. |
+ FORMAT_USAGE_OPAQUE, |
+ NUM_RESOURCE_FORMAT_USAGE |
+}; |
+ |
} // namespace cc |
#endif // CC_RESOURCES_RESOURCE_FORMAT_H_ |