From 530c844d25340eb2f2a4500c99c3f9d04a95b66e Mon Sep 17 00:00:00 2001 From: msarett Date: Thu, 21 Jul 2016 11:57:49 -0700 Subject: Remove unnecessary getColorSpace() API from SkCodec Not needed since now we can get it from the SkImageInfo. TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2170793004 Review-Url: https://codereview.chromium.org/2170793004 --- tests/ColorSpaceTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp index 442ed3df30..df03ea40c2 100644 --- a/tests/ColorSpaceTest.cpp +++ b/tests/ColorSpaceTest.cpp @@ -65,7 +65,7 @@ DEF_TEST(ColorSpaceParsePngICCProfile, r) { REPORTER_ASSERT(r, nullptr != codec); #if (PNG_LIBPNG_VER_MAJOR > 1) || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 6) - SkColorSpace* colorSpace = codec->getColorSpace(); + SkColorSpace* colorSpace = codec->getInfo().colorSpace(); REPORTER_ASSERT(r, nullptr != colorSpace); test_space(r, colorSpace, &g_sRGB_XYZ[0], &g_sRGB_XYZ[3], &g_sRGB_XYZ[6], @@ -86,7 +86,7 @@ DEF_TEST(ColorSpaceParseJpegICCProfile, r) { return; } - SkColorSpace* colorSpace = codec->getColorSpace(); + SkColorSpace* colorSpace = codec->getInfo().colorSpace(); REPORTER_ASSERT(r, nullptr != colorSpace); const float red[] = { 0.385117f, 0.716904f, 0.0970612f }; -- cgit v1.2.3