diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ColorSpaceTest.cpp | 2 | ||||
-rw-r--r-- | tests/ICCTest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp index e95c528ea5..d1eb75efe4 100644 --- a/tests/ColorSpaceTest.cpp +++ b/tests/ColorSpaceTest.cpp @@ -438,7 +438,7 @@ DEF_TEST(ColorSpace_IsSRGB, r) { #if defined(SK_USE_SKCMS) DEF_TEST(ColorSpace_skcms_IsSRGB, r) { - sk_sp<SkColorSpace> srgb = SkColorSpace::Make(skcms_sRGB_profile()); + sk_sp<SkColorSpace> srgb = SkColorSpace::Make(*skcms_sRGB_profile()); REPORTER_ASSERT(r, srgb->isSRGB()); } #endif diff --git a/tests/ICCTest.cpp b/tests/ICCTest.cpp index af01fc9ff8..e88255b2cd 100644 --- a/tests/ICCTest.cpp +++ b/tests/ICCTest.cpp @@ -36,7 +36,7 @@ skcms_ICCProfile parsed; REPORTER_ASSERT(r, skcms_Parse(profile->data(), profile->size(), &parsed)); - sk_sp<SkColorSpace> got = SkColorSpace::Make(&parsed); + sk_sp<SkColorSpace> got = SkColorSpace::Make(parsed); REPORTER_ASSERT(r, got); REPORTER_ASSERT(r, SkColorSpace::Equals(got.get(), test.want.get())); @@ -64,7 +64,7 @@ skcms_ICCProfile parsed; REPORTER_ASSERT(r, skcms_Parse(profile->data(), profile->size(), &parsed)); - auto got = SkColorSpace::Make(&parsed); + auto got = SkColorSpace::Make(parsed); auto want = SkColorSpace::MakeRGB(g2Dot2_TransferFn, SkColorSpace::kAdobeRGB_Gamut); REPORTER_ASSERT(r, SkColorSpace::Equals(got.get(), want.get())); } |