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

Unified Diff: tests/ColorSpaceTest.cpp

Issue 1950183006: Approximate common gamma tables as single values (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix tests Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkColorSpace.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ColorSpaceTest.cpp
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp
index 7e818caad0f3f0e90299e67b783b01734a4a7247..17332d720d5d9ec6d28cf7379e76a83436de8482 100644
--- a/tests/ColorSpaceTest.cpp
+++ b/tests/ColorSpaceTest.cpp
@@ -74,7 +74,7 @@ DEF_TEST(ColorSpaceParsePngICCProfile, r) {
const float red[] = { 0.436066f, 0.222488f, 0.013916f };
const float green[] = { 0.385147f, 0.716873f, 0.0970764f };
const float blue[] = { 0.143066f, 0.0606079f, 0.714096f };
- const float gamma[] = { 0, 0, 0 }; // table-based gamma returns 0 from this its float-getter
+ const float gamma[] = { 2.2f, 2.2f, 2.2f };
test_space(r, colorSpace, red, green, blue, gamma);
#endif
}
« no previous file with comments | « src/core/SkColorSpace.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698