Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Unified Diff: cc/resources/resource_format.h

Issue 817133006: Support different formats in the same resource pool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698