From a5fdc974a996dca79be8388e61db68043001760b Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Sat, 18 Feb 2017 16:58:09 -0500 Subject: Replace SkSpecialImage::makeTightSubset with asImage (take 2) This is a reland of https://skia-review.googlesource.com/c/8498/ (Replace SkSpecialImage::makeTightSubset with asImage) It must wait on https://codereview.chromium.org/2702703002/ (Add suppressions for upcoming Skia DEPS roll) due to minor layout test changes This should allow the relanding of: https://skia-review.googlesource.com/c/8450/ (Remove asTextureRef from SkSpecialImage & update effects accordingly (take 2)) Change-Id: I7086a419869dbeb62d9b9e9714c796d54e75ee49 Reviewed-on: https://skia-review.googlesource.com/8701 Reviewed-by: Robert Phillips Commit-Queue: Robert Phillips --- tests/SpecialImageTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/SpecialImageTest.cpp') diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp index e2e4990d12..fc59f05d1e 100644 --- a/tests/SpecialImageTest.cpp +++ b/tests/SpecialImageTest.cpp @@ -110,11 +110,11 @@ static void test_image(const sk_sp& img, skiatest::Reporter* rep kSmallerSize+kPad)); //-------------- - // Test that makeTightSubset & makeTightSurface return appropriately sized objects + // Test that asImage & makeTightSurface return appropriately sized objects // of the correct backing type SkIRect newSubset = SkIRect::MakeWH(subset.width(), subset.height()); { - sk_sp tightImg(img->makeTightSubset(newSubset)); + sk_sp tightImg(img->asImage(&newSubset)); REPORTER_ASSERT(reporter, tightImg->width() == subset.width()); REPORTER_ASSERT(reporter, tightImg->height() == subset.height()); -- cgit v1.2.3