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

Unified Diff: ui/gfx/color_transform_unittest.cc

Issue 2691213007: color: Don't use QCMS for transforms unless necessary (Closed)
Patch Set: Incorporate review feedback Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/color_transform.cc ('k') | ui/gfx/icc_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_transform_unittest.cc
diff --git a/ui/gfx/color_transform_unittest.cc b/ui/gfx/color_transform_unittest.cc
index e566ff928799e8099c7745915173fc4797b41ef4..36e3ab21e958862b229fd21559793cb1c818f4f3 100644
--- a/ui/gfx/color_transform_unittest.cc
+++ b/ui/gfx/color_transform_unittest.cc
@@ -97,8 +97,8 @@ TEST(SimpleColorSpace, SRGBFromICCAndNotICC) {
std::unique_ptr<ColorTransform> toxyzd50_fromicc(
ColorTransform::NewColorTransform(
srgb_fromicc, xyzd50, ColorTransform::Intent::INTENT_ABSOLUTE));
- // This will have 1 step, namely, the QCMS transform.
- EXPECT_EQ(toxyzd50_fromicc->NumberOfStepsForTesting(), 1u);
+ // This will be converted to a transfer function and then linear transform.
+ EXPECT_EQ(toxyzd50_fromicc->NumberOfStepsForTesting(), 2u);
toxyzd50_fromicc->Transform(&value_fromicc, 1);
std::unique_ptr<ColorTransform> toxyzd50_default(
« no previous file with comments | « ui/gfx/color_transform.cc ('k') | ui/gfx/icc_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698