OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "cc/resources/platform_color.h" | 5 #include "cc/resources/platform_color.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 case BGRA_8888: | 24 case BGRA_8888: |
25 EXPECT_NE(rgba, PlatformColor::SameComponentOrder(format)); | 25 EXPECT_NE(rgba, PlatformColor::SameComponentOrder(format)); |
26 break; | 26 break; |
27 // The following formats are not platform colors. | 27 // The following formats are not platform colors. |
28 case ALPHA_8: | 28 case ALPHA_8: |
29 case LUMINANCE_8: | 29 case LUMINANCE_8: |
30 case RGB_565: | 30 case RGB_565: |
31 case RGBA_4444: | 31 case RGBA_4444: |
32 case ETC1: | 32 case ETC1: |
33 case RED_8: | 33 case RED_8: |
| 34 case RG_88: |
34 case LUMINANCE_F16: | 35 case LUMINANCE_F16: |
35 break; | 36 break; |
36 } | 37 } |
37 } | 38 } |
38 } | 39 } |
39 | 40 |
40 } // namespace | 41 } // namespace |
41 } // namespace cc | 42 } // namespace cc |
OLD | NEW |