OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
7 #include "ui/gfx/color_space.h" | 7 #include "ui/gfx/color_space.h" |
8 #include "ui/gfx/color_transform.h" | 8 #include "ui/gfx/color_transform.h" |
9 #include "ui/gfx/icc_profile.h" | 9 #include "ui/gfx/icc_profile.h" |
10 #include "ui/gfx/icc_profile_unittest.h" | 10 #include "ui/gfx/test/icc_profiles.h" |
11 #include "ui/gfx/transform.h" | 11 #include "ui/gfx/transform.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 | 14 |
15 // Internal functions, exposted for testing. | 15 // Internal functions, exposted for testing. |
16 GFX_EXPORT Transform GetPrimaryMatrix(ColorSpace::PrimaryID id); | 16 GFX_EXPORT Transform GetPrimaryMatrix(ColorSpace::PrimaryID id); |
17 GFX_EXPORT Transform GetTransferMatrix(ColorSpace::MatrixID id); | 17 GFX_EXPORT Transform GetTransferMatrix(ColorSpace::MatrixID id); |
18 GFX_EXPORT float ToLinear(ColorSpace::TransferID id, float v); | 18 GFX_EXPORT float ToLinear(ColorSpace::TransferID id, float v); |
19 GFX_EXPORT float FromLinear(ColorSpace::TransferID id, float v); | 19 GFX_EXPORT float FromLinear(ColorSpace::TransferID id, float v); |
20 | 20 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 testing::ValuesIn(all_ranges))); | 269 testing::ValuesIn(all_ranges))); |
270 | 270 |
271 INSTANTIATE_TEST_CASE_P( | 271 INSTANTIATE_TEST_CASE_P( |
272 C, | 272 C, |
273 ColorSpaceTest, | 273 ColorSpaceTest, |
274 testing::Combine(testing::ValuesIn(all_primaries), | 274 testing::Combine(testing::ValuesIn(all_primaries), |
275 testing::Values(ColorSpace::TransferID::BT709), | 275 testing::Values(ColorSpace::TransferID::BT709), |
276 testing::ValuesIn(all_matrices), | 276 testing::ValuesIn(all_matrices), |
277 testing::ValuesIn(all_ranges))); | 277 testing::ValuesIn(all_ranges))); |
278 } // namespace | 278 } // namespace |
OLD | NEW |