OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ICC_PROFILE_H_ | 5 #ifndef UI_GFX_ICC_PROFILE_H_ |
6 #define UI_GFX_ICC_PROFILE_H_ | 6 #define UI_GFX_ICC_PROFILE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 private: | 59 private: |
60 static ICCProfile FromData(const std::vector<char>& icc_profile); | 60 static ICCProfile FromData(const std::vector<char>& icc_profile); |
61 static bool IsValidProfileLength(size_t length); | 61 static bool IsValidProfileLength(size_t length); |
62 | 62 |
63 bool valid_ = false; | 63 bool valid_ = false; |
64 std::vector<char> data_; | 64 std::vector<char> data_; |
65 | 65 |
66 // This globally identifies this ICC profile. It is used to look up this ICC | 66 // This globally identifies this ICC profile. It is used to look up this ICC |
67 // profile from a ColorSpace object created from it. | 67 // profile from a ColorSpace object created from it. |
68 uint64_t id_ = 0; | 68 uint64_t id_ = 0; |
69 | 69 |
ccameron
2016/07/27 17:10:30
Good riddance.
hubbe
2016/07/27 17:44:04
Acknowledged.
| |
70 // Hard-coded values for the supported non-monitor-ICC-based profiles that we | |
71 // support (for now). | |
72 static const uint64_t kSRGBId = 1; | |
73 static const uint64_t kJpegId = 2; | |
74 static const uint64_t kRec601Id = 3; | |
75 static const uint64_t kRec709Id = 4; | |
76 | |
77 friend class ColorSpace; | 70 friend class ColorSpace; |
78 friend struct IPC::ParamTraits<gfx::ICCProfile>; | 71 friend struct IPC::ParamTraits<gfx::ICCProfile>; |
79 }; | 72 }; |
80 | 73 |
81 } // namespace gfx | 74 } // namespace gfx |
82 | 75 |
83 #endif // UI_GFX_ICC_PROFILE_H_ | 76 #endif // UI_GFX_ICC_PROFILE_H_ |
OLD | NEW |