Index: tests/SpecialImageTest.cpp |
diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp |
index e992177430c6a01f50b59a4a65f6bd5d52cc7279..ba0eb58f4eb1a930ce9f4ef7beddcba5297b7cb7 100644 |
--- a/tests/SpecialImageTest.cpp |
+++ b/tests/SpecialImageTest.cpp |
@@ -85,9 +85,9 @@ |
//-------------- |
// Test that draw restricts itself to the subset |
- SkImageFilter::OutputProperties outProps(img->getColorSpace()); |
- sk_sp<SkSpecialSurface> surf(img->makeSurface(outProps, SkISize::Make(kFullSize, kFullSize), |
- kOpaque_SkAlphaType)); |
+ SkImageInfo info = SkImageInfo::MakeN32(kFullSize, kFullSize, kOpaque_SkAlphaType); |
+ |
+ sk_sp<SkSpecialSurface> surf(img->makeSurface(info)); |
SkCanvas* canvas = surf->getCanvas(); |
@@ -122,8 +122,9 @@ |
REPORTER_ASSERT(reporter, peekTextureSucceeds != !!tightImg->peekPixels(&tmpPixmap)); |
} |
{ |
- SkImageFilter::OutputProperties outProps(img->getColorSpace()); |
- sk_sp<SkSurface> tightSurf(img->makeTightSurface(outProps, subset.size())); |
+ SkImageInfo info = SkImageInfo::MakeN32(subset.width(), subset.height(), |
+ kPremul_SkAlphaType); |
+ sk_sp<SkSurface> tightSurf(img->makeTightSurface(info)); |
REPORTER_ASSERT(reporter, tightSurf->width() == subset.width()); |
REPORTER_ASSERT(reporter, tightSurf->height() == subset.height()); |