| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_GFX_COLOR_SPACE_H_ | 5 #ifndef UI_GFX_COLOR_SPACE_H_ |
| 6 #define UI_GFX_COLOR_SPACE_H_ | 6 #define UI_GFX_COLOR_SPACE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <ostream> | 9 #include <ostream> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 BT470BG, | 35 BT470BG, |
| 36 SMPTE170M, | 36 SMPTE170M, |
| 37 SMPTE240M, | 37 SMPTE240M, |
| 38 FILM, | 38 FILM, |
| 39 BT2020, | 39 BT2020, |
| 40 SMPTEST428_1, | 40 SMPTEST428_1, |
| 41 SMPTEST431_2, | 41 SMPTEST431_2, |
| 42 SMPTEST432_1, | 42 SMPTEST432_1, |
| 43 XYZ_D50, | 43 XYZ_D50, |
| 44 ADOBE_RGB, | 44 ADOBE_RGB, |
| 45 // Corresponds the the primaries of the "Generic RGB" profile used in the |
| 46 // Apple ColorSync application, used by layout tests on Mac. |
| 47 APPLE_GENERIC_RGB, |
| 45 // Primaries defined by the primary matrix |custom_primary_matrix_|. | 48 // Primaries defined by the primary matrix |custom_primary_matrix_|. |
| 46 CUSTOM, | 49 CUSTOM, |
| 47 // For color spaces defined by an ICC profile which cannot be represented | 50 // For color spaces defined by an ICC profile which cannot be represented |
| 48 // parametrically. Any ColorTransform using this color space will use the | 51 // parametrically. Any ColorTransform using this color space will use the |
| 49 // ICC profile directly to compute a transform LUT. | 52 // ICC profile directly to compute a transform LUT. |
| 50 ICC_BASED, | 53 ICC_BASED, |
| 51 LAST = ICC_BASED, | 54 LAST = ICC_BASED, |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 enum class TransferID : uint8_t { | 57 enum class TransferID : uint8_t { |
| 55 INVALID, | 58 INVALID, |
| 56 BT709, | 59 BT709, |
| 60 GAMMA18, |
| 57 GAMMA22, | 61 GAMMA22, |
| 58 GAMMA24, | 62 GAMMA24, |
| 59 GAMMA28, | 63 GAMMA28, |
| 60 SMPTE170M, | 64 SMPTE170M, |
| 61 SMPTE240M, | 65 SMPTE240M, |
| 62 LINEAR, | 66 LINEAR, |
| 63 LOG, | 67 LOG, |
| 64 LOG_SQRT, | 68 LOG_SQRT, |
| 65 IEC61966_2_4, | 69 IEC61966_2_4, |
| 66 BT1361_ECG, | 70 BT1361_ECG, |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); | 209 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); |
| 206 }; | 210 }; |
| 207 | 211 |
| 208 // Stream operator so ColorSpace can be used in assertion statements. | 212 // Stream operator so ColorSpace can be used in assertion statements. |
| 209 GFX_EXPORT std::ostream& operator<<(std::ostream& out, | 213 GFX_EXPORT std::ostream& operator<<(std::ostream& out, |
| 210 const ColorSpace& color_space); | 214 const ColorSpace& color_space); |
| 211 | 215 |
| 212 } // namespace gfx | 216 } // namespace gfx |
| 213 | 217 |
| 214 #endif // UI_GFX_COLOR_SPACE_H_ | 218 #endif // UI_GFX_COLOR_SPACE_H_ |
| OLD | NEW |