Lines Matching refs:subset
55 SkImage_Lazy::Validator::Validator(sk_sp<SharedGenerator> gen, const SkIRect* subset,
72 if (subset) {
73 if (!bounds.contains(*subset)) {
77 if (*subset != bounds) {
78 // we need a different uniqueID since we really are a subset of the raw generator
82 subset = &bounds;
85 fInfo = info.makeWH(subset->width(), subset->height());
86 fOrigin = SkIPoint::Make(subset->x(), subset->y());
153 // If they are requesting a subset, we have to have a temp allocation for full image, and
154 // then copy the subset into their allocation
252 sk_sp<SkImage> SkImage_Lazy::onMakeSubset(const SkIRect& subset) const {
253 SkASSERT(fInfo.bounds().contains(subset));
254 SkASSERT(fInfo.bounds() != subset);
256 const SkIRect generatorSubset = subset.makeOffset(fOrigin.x(), fOrigin.y());
281 const SkIRect* subset) {
283 validator(SharedGenerator::Make(std::move(generator)), subset, nullptr, nullptr);