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 CC_RESOURCES_PLATFORM_COLOR_H_ | 5 #ifndef CC_RESOURCES_PLATFORM_COLOR_H_ |
6 #define CC_RESOURCES_PLATFORM_COLOR_H_ | 6 #define CC_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 "cc/resources/resource_format.h" | 10 #include "cc/resources/resource_format.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 return Format() == SOURCE_FORMAT_RGBA8; | 55 return Format() == SOURCE_FORMAT_RGBA8; |
56 case BGRA_8888: | 56 case BGRA_8888: |
57 return Format() == SOURCE_FORMAT_BGRA8; | 57 return Format() == SOURCE_FORMAT_BGRA8; |
58 case ALPHA_8: | 58 case ALPHA_8: |
59 case LUMINANCE_8: | 59 case LUMINANCE_8: |
60 case RGB_565: | 60 case RGB_565: |
61 case RGBA_4444: | 61 case RGBA_4444: |
62 case ETC1: | 62 case ETC1: |
63 case RED_8: | 63 case RED_8: |
64 case LUMINANCE_F16: | 64 case LUMINANCE_F16: |
| 65 case RGBA_F16: |
65 NOTREACHED(); | 66 NOTREACHED(); |
66 return false; | 67 return false; |
67 } | 68 } |
68 | 69 |
69 NOTREACHED(); | 70 NOTREACHED(); |
70 return false; | 71 return false; |
71 } | 72 } |
72 | 73 |
73 private: | 74 private: |
74 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); | 75 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace cc | 78 } // namespace cc |
78 | 79 |
79 #endif // CC_RESOURCES_PLATFORM_COLOR_H_ | 80 #endif // CC_RESOURCES_PLATFORM_COLOR_H_ |
OLD | NEW |