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: | |
66 NOTREACHED(); | 65 NOTREACHED(); |
67 return false; | 66 return false; |
68 } | 67 } |
69 | 68 |
70 NOTREACHED(); | 69 NOTREACHED(); |
71 return false; | 70 return false; |
72 } | 71 } |
73 | 72 |
74 private: | 73 private: |
75 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); | 74 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace cc | 77 } // namespace cc |
79 | 78 |
80 #endif // CC_RESOURCES_PLATFORM_COLOR_H_ | 79 #endif // CC_RESOURCES_PLATFORM_COLOR_H_ |
OLD | NEW |