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

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

Issue 2898583002: color: Fix color not being reset between layout tests (Closed)
Patch Set: Review feedbakc Created 3 years, 7 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 | « content/test/layouttest_support.cc ('k') | ui/gfx/test/icc_profiles.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 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
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
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_
OLDNEW
« no previous file with comments | « content/test/layouttest_support.cc ('k') | ui/gfx/test/icc_profiles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698