| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 friend ICCProfile ICCProfileForTestingAdobeRGB(); | 79 friend ICCProfile ICCProfileForTestingAdobeRGB(); |
| 80 friend ICCProfile ICCProfileForTestingColorSpin(); | 80 friend ICCProfile ICCProfileForTestingColorSpin(); |
| 81 friend ICCProfile ICCProfileForTestingGenericRGB(); | 81 friend ICCProfile ICCProfileForTestingGenericRGB(); |
| 82 friend ICCProfile ICCProfileForTestingSRGB(); | 82 friend ICCProfile ICCProfileForTestingSRGB(); |
| 83 friend ICCProfile ICCProfileForTestingNoAnalyticTrFn(); | 83 friend ICCProfile ICCProfileForTestingNoAnalyticTrFn(); |
| 84 friend ICCProfile ICCProfileForTestingA2BOnly(); | 84 friend ICCProfile ICCProfileForTestingA2BOnly(); |
| 85 friend ICCProfile ICCProfileForTestingOvershoot(); | 85 friend ICCProfile ICCProfileForTestingOvershoot(); |
| 86 friend ICCProfile ICCProfileForLayoutTests(); |
| 86 static const uint64_t test_id_adobe_rgb_; | 87 static const uint64_t test_id_adobe_rgb_; |
| 87 static const uint64_t test_id_color_spin_; | 88 static const uint64_t test_id_color_spin_; |
| 88 static const uint64_t test_id_generic_rgb_; | 89 static const uint64_t test_id_generic_rgb_; |
| 89 static const uint64_t test_id_srgb_; | 90 static const uint64_t test_id_srgb_; |
| 90 static const uint64_t test_id_no_analytic_tr_fn_; | 91 static const uint64_t test_id_no_analytic_tr_fn_; |
| 91 static const uint64_t test_id_a2b_only_; | 92 static const uint64_t test_id_a2b_only_; |
| 92 static const uint64_t test_id_overshoot_; | 93 static const uint64_t test_id_overshoot_; |
| 93 | 94 |
| 94 // Populate |icc_profile| with the ICCProfile corresponding to id |id|. Return | 95 // Populate |icc_profile| with the ICCProfile corresponding to id |id|. Return |
| 95 // false if |id| is not in the cache. | 96 // false if |id| is not in the cache. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); | 129 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); |
| 129 friend int ::LLVMFuzzerTestOneInput(const uint8_t*, size_t); | 130 friend int ::LLVMFuzzerTestOneInput(const uint8_t*, size_t); |
| 130 friend class ColorSpace; | 131 friend class ColorSpace; |
| 131 friend class ColorTransformInternal; | 132 friend class ColorTransformInternal; |
| 132 friend struct IPC::ParamTraits<gfx::ICCProfile>; | 133 friend struct IPC::ParamTraits<gfx::ICCProfile>; |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 } // namespace gfx | 136 } // namespace gfx |
| 136 | 137 |
| 137 #endif // UI_GFX_ICC_PROFILE_H_ | 138 #endif // UI_GFX_ICC_PROFILE_H_ |
| OLD | NEW |