Index: tests/ColorSpaceXformTest.cpp |
diff --git a/tests/ColorSpaceXformTest.cpp b/tests/ColorSpaceXformTest.cpp |
index 23b08ce8aecc9a2a30808422d5f4bf5ab817146b..1e75ee68534cbb6acff1daae791a7f6eb295732d 100644 |
--- a/tests/ColorSpaceXformTest.cpp |
+++ b/tests/ColorSpaceXformTest.cpp |
@@ -37,19 +37,19 @@ static void test_identity_xform(skiatest::Reporter* r, const sk_sp<SkGammas>& ga |
// Create and perform an identity xform. |
std::unique_ptr<SkColorSpaceXform> xform = ColorSpaceXformTest::CreateIdentityXform(gammas); |
- xform->applyTo8888(dstPixels, srcPixels, width); |
+ xform->applyToRGBA(dstPixels, srcPixels, width); |
// Since the src->dst matrix is the identity, and the gamma curves match, |
// the pixels should be unchanged. |
for (int i = 0; i < width; i++) { |
REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 0) & 0xFF), |
- SkGetPackedR32(dstPixels[i]))); |
+ ((dstPixels[i] >> 0) & 0xFF))); |
REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 8) & 0xFF), |
- SkGetPackedG32(dstPixels[i]))); |
+ ((dstPixels[i] >> 8) & 0xFF))); |
REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 16) & 0xFF), |
- SkGetPackedB32(dstPixels[i]))); |
+ ((dstPixels[i] >> 16) & 0xFF))); |
REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 24) & 0xFF), |
- SkGetPackedA32(dstPixels[i]))); |
+ ((dstPixels[i] >> 24) & 0xFF))); |
} |
} |