OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_ | 5 #ifndef COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_ |
6 #define COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_ | 6 #define COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/viz/common/resources/resource_format.h" | 10 #include "components/viz/common/resources/resource_format.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 case BGRA_8888: | 53 case BGRA_8888: |
54 return Format() == SOURCE_FORMAT_BGRA8; | 54 return Format() == SOURCE_FORMAT_BGRA8; |
55 case ALPHA_8: | 55 case ALPHA_8: |
56 case LUMINANCE_8: | 56 case LUMINANCE_8: |
57 case RGB_565: | 57 case RGB_565: |
58 case RGBA_4444: | 58 case RGBA_4444: |
59 case ETC1: | 59 case ETC1: |
60 case RED_8: | 60 case RED_8: |
61 case LUMINANCE_F16: | 61 case LUMINANCE_F16: |
62 case RGBA_F16: | 62 case RGBA_F16: |
| 63 case R16_EXT: |
63 NOTREACHED(); | 64 NOTREACHED(); |
64 return false; | 65 return false; |
65 } | 66 } |
66 | 67 |
67 NOTREACHED(); | 68 NOTREACHED(); |
68 return false; | 69 return false; |
69 } | 70 } |
70 | 71 |
71 private: | 72 private: |
72 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); | 73 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); |
73 }; | 74 }; |
74 | 75 |
75 } // namespace viz | 76 } // namespace viz |
76 | 77 |
77 #endif // COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_ | 78 #endif // COMPONENTS_VIZ_COMMON_RESOURCES_PLATFORM_COLOR_H_ |
OLD | NEW |