diff options
author | msarett <msarett@google.com> | 2016-07-21 11:57:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-21 11:57:49 -0700 |
commit | 530c844d25340eb2f2a4500c99c3f9d04a95b66e (patch) | |
tree | 2d910c86ca3c49f04facead73a1085fa0dbe0f17 /tests | |
parent | a95220d3b8deaec22a4706cd3030dd9a8454aeb9 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ColorSpaceTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 }; |