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

Unified Diff: cc/resources/resource_format.h

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « cc/resources/prioritized_resource_unittest.cc ('k') | cc/resources/resource_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « cc/resources/prioritized_resource_unittest.cc ('k') | cc/resources/resource_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698