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

Unified Diff: cc/resources/platform_color.h

Issue 1513733003: Revert of Allow one-copy task tile worker pool to use compressed textures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/resources/resource_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/platform_color.h
diff --git a/cc/resources/platform_color.h b/cc/resources/platform_color.h
index 7e498635b2b8a73a020947753ad7752c0a4a4e8b..17eddc1faa7552fde72ce800d2d636bc524e86e2 100644
--- a/cc/resources/platform_color.h
+++ b/cc/resources/platform_color.h
@@ -24,19 +24,7 @@
}
// Returns the most efficient texture format for this platform.
- static ResourceFormat BestTextureFormat() {
- switch (Format()) {
- case SOURCE_FORMAT_BGRA8:
- return BGRA_8888;
- case SOURCE_FORMAT_RGBA8:
- return RGBA_8888;
- }
- NOTREACHED();
- return RGBA_8888;
- }
-
- // Returns the most efficient supported texture format for this platform.
- static ResourceFormat BestSupportedTextureFormat(bool supports_bgra8888) {
+ static ResourceFormat BestTextureFormat(bool supports_bgra8888) {
switch (Format()) {
case SOURCE_FORMAT_BGRA8:
return (supports_bgra8888) ? BGRA_8888 : RGBA_8888;
« no previous file with comments | « cc/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/resources/resource_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698