| Index: tests/ColorSpaceXformTest.cpp
|
| diff --git a/tests/ColorSpaceXformTest.cpp b/tests/ColorSpaceXformTest.cpp
|
| index 1e75ee68534cbb6acff1daae791a7f6eb295732d..23b08ce8aecc9a2a30808422d5f4bf5ab817146b 100644
|
| --- a/tests/ColorSpaceXformTest.cpp
|
| +++ b/tests/ColorSpaceXformTest.cpp
|
| @@ -37,19 +37,19 @@
|
|
|
| // Create and perform an identity xform.
|
| std::unique_ptr<SkColorSpaceXform> xform = ColorSpaceXformTest::CreateIdentityXform(gammas);
|
| - xform->applyToRGBA(dstPixels, srcPixels, width);
|
| + xform->applyTo8888(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),
|
| - ((dstPixels[i] >> 0) & 0xFF)));
|
| + SkGetPackedR32(dstPixels[i])));
|
| REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 8) & 0xFF),
|
| - ((dstPixels[i] >> 8) & 0xFF)));
|
| + SkGetPackedG32(dstPixels[i])));
|
| REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 16) & 0xFF),
|
| - ((dstPixels[i] >> 16) & 0xFF)));
|
| + SkGetPackedB32(dstPixels[i])));
|
| REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 24) & 0xFF),
|
| - ((dstPixels[i] >> 24) & 0xFF)));
|
| + SkGetPackedA32(dstPixels[i])));
|
| }
|
| }
|
|
|
|
|