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

Side by Side Diff: ui/gfx/color_transform_unittest.cc

Issue 2605743002: Use consistent types for ICC profiles (Closed)
Patch Set: No export for static lib Created 3 years, 12 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698