Home | History | Annotate | Download | only in tests

Lines Matching refs:subset

59     const SkIRect subset = img->subset();
60 REPORTER_ASSERT(reporter, offset == subset.left());
61 REPORTER_ASSERT(reporter, offset == subset.top());
62 REPORTER_ASSERT(reporter, kSmallerSize == subset.width());
63 REPORTER_ASSERT(reporter, kSmallerSize == subset.height());
89 // Test that draw restricts itself to the subset
116 SkIRect newSubset = SkIRect::MakeWH(subset.width(), subset.height());
120 REPORTER_ASSERT(reporter, tightImg->width() == subset.width());
121 REPORTER_ASSERT(reporter, tightImg->height() == subset.height());
128 sk_sp<SkSurface> tightSurf(img->makeTightSurface(outProps, subset.size()));
130 REPORTER_ASSERT(reporter, tightSurf->width() == subset.width());
131 REPORTER_ASSERT(reporter, tightSurf->height() == subset.height());
147 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
150 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromRaster(subset, bm));
155 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset));
170 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
173 sk_sp<SkSpecialImage> subSImg1(SkSpecialImage::MakeFromImage(nullptr, subset, fullImage));
178 sk_sp<SkSpecialImage> subSImg2(fullSImage->makeSubset(subset));
193 REPORTER_ASSERT(reporter, gpuBacked->subset().width() == orig->subset().width() &&
194 gpuBacked->subset().height() == orig->subset().height());
204 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
219 sk_sp<SkSpecialImage> subRasterImage(rasterImage->makeSubset(subset));
248 sk_sp<SkSpecialImage> subGPUImage(gpuImage->makeSubset(subset));
275 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
279 context, subset,
286 sk_sp<SkSpecialImage> subSImg2(fullSImg->makeSubset(subset));