diff options
author | 2016-09-08 10:10:11 -0700 | |
---|---|---|
committer | 2016-09-08 10:10:11 -0700 | |
commit | 971cd496b9e25f87f3a75a0015c203322907136a (patch) | |
tree | ce407f846cdad8e4cf71c6d0479a1588b45d5cf6 /tests/TestConfigParsing.cpp | |
parent | f3155ad97c8095e5172fb826d7f09b7a85062f25 (diff) |
Cache the inverse matrix on SkColorSpace. Rename xyz() to toXYZ().
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2323003002
Review-Url: https://codereview.chromium.org/2323003002
Diffstat (limited to 'tests/TestConfigParsing.cpp')
-rw-r--r-- | tests/TestConfigParsing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestConfigParsing.cpp b/tests/TestConfigParsing.cpp index a68a52d8ff..1804423c0d 100644 --- a/tests/TestConfigParsing.cpp +++ b/tests/TestConfigParsing.cpp @@ -125,8 +125,8 @@ DEF_TEST(ParseConfigs_DefaultConfigs, reporter) { REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGBA_F16_SkColorType); REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()); REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()->gammaIsLinear()); - REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()->xyz() == - srgbColorSpace->xyz()); + REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace()->toXYZD50() == + srgbColorSpace->toXYZD50()); REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kN32_SkColorType); REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srgbColorSpace.get()); REPORTER_ASSERT(reporter, configs[33]->asConfigGpu()->getContextType() == |