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

Unified Diff: ui/gfx/color_space_unittest.cc

Issue 2784673006: color: Do not enforce T(0)=0 and T(1)=1 constraints in approxmation (Closed)
Patch Set: Fix the right error bound Created 3 years, 9 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 | « no previous file | 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_space_unittest.cc
diff --git a/ui/gfx/color_space_unittest.cc b/ui/gfx/color_space_unittest.cc
index c9c8775ccce721ab86fe6bf9a9a66f7f7ef172eb..c80fbb8aa903cd88a3cc5c24974091bf66a2ce6e 100644
--- a/ui/gfx/color_space_unittest.cc
+++ b/ui/gfx/color_space_unittest.cc
@@ -109,8 +109,8 @@ TEST_P(ColorSpaceTableTest, ApproximateTransferFn) {
for (size_t i = 0; i < x.size(); ++i) {
float fn_approx_of_x = SkTransferFnEval(fn_approx, x[i]);
- EXPECT_NEAR(t[i], fn_approx_of_x, 2.f / 256.f);
- if (std::abs(t[i] - fn_approx_of_x) > 2.f / 256.f)
+ EXPECT_NEAR(t[i], fn_approx_of_x, 3.f / 256.f);
+ if (std::abs(t[i] - fn_approx_of_x) > 3.f / 256.f)
break;
}
}
« no previous file with comments | « no previous file | ui/gfx/icc_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698