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