Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: ui/gfx/color_space.h

Issue 2912903003: color: Add color spin primaries for layout tests (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gfx/color_space.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 27 matching lines...) Expand all
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 45 // Corresponds the the primaries of the "Generic RGB" profile used in the
46 // Apple ColorSync application, used by layout tests on Mac. 46 // Apple ColorSync application, used by layout tests on Mac.
47 APPLE_GENERIC_RGB, 47 APPLE_GENERIC_RGB,
48 // A very wide gamut space with rotated primaries. Used by layout tests.
49 WIDE_GAMUT_COLOR_SPIN,
48 // Primaries defined by the primary matrix |custom_primary_matrix_|. 50 // Primaries defined by the primary matrix |custom_primary_matrix_|.
49 CUSTOM, 51 CUSTOM,
50 // For color spaces defined by an ICC profile which cannot be represented 52 // For color spaces defined by an ICC profile which cannot be represented
51 // parametrically. Any ColorTransform using this color space will use the 53 // parametrically. Any ColorTransform using this color space will use the
52 // ICC profile directly to compute a transform LUT. 54 // ICC profile directly to compute a transform LUT.
53 ICC_BASED, 55 ICC_BASED,
54 LAST = ICC_BASED, 56 LAST = ICC_BASED,
55 }; 57 };
56 58
57 enum class TransferID : uint8_t { 59 enum class TransferID : uint8_t {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); 211 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace);
210 }; 212 };
211 213
212 // Stream operator so ColorSpace can be used in assertion statements. 214 // Stream operator so ColorSpace can be used in assertion statements.
213 GFX_EXPORT std::ostream& operator<<(std::ostream& out, 215 GFX_EXPORT std::ostream& operator<<(std::ostream& out,
214 const ColorSpace& color_space); 216 const ColorSpace& color_space);
215 217
216 } // namespace gfx 218 } // namespace gfx
217 219
218 #endif // UI_GFX_COLOR_SPACE_H_ 220 #endif // UI_GFX_COLOR_SPACE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/color_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698