Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1379)

Unified Diff: tests/ColorSpaceTest.cpp

Issue 2170793004: Remove unnecessary getColorSpace() API from SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Pass refs more efficiently Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | tools/viewer/ImageSlide.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ColorSpaceTest.cpp
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp
index 442ed3df30cf370246a5fd502eca950e579e7cff..df03ea40c286e309db15aef57492b148a1748cdb 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 };
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | tools/viewer/ImageSlide.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698