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

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

Issue 2915673003: ui/gfx: Use separate components for color_space and switches (Closed)
Patch Set: Review feedback 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 | « ui/gfx/BUILD.gn ('k') | ui/gfx/color_space_export.h » ('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
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "third_party/skia/include/core/SkColorSpace.h" 14 #include "third_party/skia/include/core/SkColorSpace.h"
15 #include "ui/gfx/gfx_export.h" 15 #include "ui/gfx/color_space_export.h"
16 16
17 namespace IPC { 17 namespace IPC {
18 template <class P> 18 template <class P>
19 struct ParamTraits; 19 struct ParamTraits;
20 } // namespace IPC 20 } // namespace IPC
21 21
22 namespace gfx { 22 namespace gfx {
23 23
24 class ICCProfile; 24 class ICCProfile;
25 25
26 // Used to represet a color space for the purpose of color conversion. 26 // Used to represet a color space for the purpose of color conversion.
27 // This is designed to be safe and compact enough to send over IPC 27 // This is designed to be safe and compact enough to send over IPC
28 // between any processes. 28 // between any processes.
29 class GFX_EXPORT ColorSpace { 29 class COLOR_SPACE_EXPORT ColorSpace {
30 public: 30 public:
31 enum class PrimaryID : uint8_t { 31 enum class PrimaryID : uint8_t {
32 INVALID, 32 INVALID,
33 BT709, 33 BT709,
34 BT470M, 34 BT470M,
35 BT470BG, 35 BT470BG,
36 SMPTE170M, 36 SMPTE170M,
37 SMPTE240M, 37 SMPTE240M,
38 FILM, 38 FILM,
39 BT2020, 39 BT2020,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 friend class ICCProfile; 206 friend class ICCProfile;
207 friend class ColorTransform; 207 friend class ColorTransform;
208 friend class ColorTransformInternal; 208 friend class ColorTransformInternal;
209 friend class ColorSpaceWin; 209 friend class ColorSpaceWin;
210 friend struct IPC::ParamTraits<gfx::ColorSpace>; 210 friend struct IPC::ParamTraits<gfx::ColorSpace>;
211 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); 211 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace);
212 }; 212 };
213 213
214 // Stream operator so ColorSpace can be used in assertion statements. 214 // Stream operator so ColorSpace can be used in assertion statements.
215 GFX_EXPORT std::ostream& operator<<(std::ostream& out, 215 COLOR_SPACE_EXPORT std::ostream& operator<<(std::ostream& out,
216 const ColorSpace& color_space); 216 const ColorSpace& color_space);
217 217
218 } // namespace gfx 218 } // namespace gfx
219 219
220 #endif // UI_GFX_COLOR_SPACE_H_ 220 #endif // UI_GFX_COLOR_SPACE_H_
OLDNEW
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/color_space_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698