Index: tests/ColorSpaceTest.cpp |
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp |
index 67015c78201293b952bcc5ac22aa0aed9d7b25e4..969e0929a404fd7bbd6fa5d19521174e1f85b8e9 100644 |
--- a/tests/ColorSpaceTest.cpp |
+++ b/tests/ColorSpaceTest.cpp |
@@ -24,7 +24,7 @@ static void test_space(skiatest::Reporter* r, SkColorSpace* space, |
REPORTER_ASSERT(r, nullptr != space); |
REPORTER_ASSERT(r, expectedGamma == as_CSB(space)->gammaNamed()); |
- const SkMatrix44& mat = space->xyz(); |
+ const SkMatrix44& mat = space->toXYZD50(); |
const float src[] = { |
1, 0, 0, 1, |
0, 1, 0, 1, |
@@ -142,7 +142,7 @@ DEF_TEST(ColorSpaceWriteICC, r) { |
sk_sp<SkData> newMonitorData = ColorSpaceTest::WriteToICC(monitorSpace.get()); |
sk_sp<SkColorSpace> newMonitorSpace = SkColorSpace::NewICC(newMonitorData->data(), |
newMonitorData->size()); |
- REPORTER_ASSERT(r, monitorSpace->xyz() == newMonitorSpace->xyz()); |
+ REPORTER_ASSERT(r, monitorSpace->toXYZD50() == newMonitorSpace->toXYZD50()); |
REPORTER_ASSERT(r, as_CSB(monitorSpace)->gammaNamed() == as_CSB(newMonitorSpace)->gammaNamed()); |
} |