diff options
Diffstat (limited to 'tests/ColorSpaceXformTest.cpp')
-rw-r--r-- | tests/ColorSpaceXformTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ColorSpaceXformTest.cpp b/tests/ColorSpaceXformTest.cpp index 0beb38fb7a..2401af582b 100644 --- a/tests/ColorSpaceXformTest.cpp +++ b/tests/ColorSpaceXformTest.cpp @@ -7,6 +7,7 @@ #include "Resources.h" #include "SkCodec.h" +#include "SkCodecPriv.h" #include "SkColorPriv.h" #include "SkColorSpace.h" #include "SkColorSpace_Base.h" @@ -39,7 +40,8 @@ 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->apply(dstPixels, srcPixels, width, kN32_SkColorType, kOpaque_SkAlphaType); + xform->apply(dstPixels, srcPixels, width, select_xform_format(kN32_SkColorType), + kOpaque_SkAlphaType); // Since the src->dst matrix is the identity, and the gamma curves match, // the pixels should be unchanged. |