| 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;
|
|
|