Lines Matching refs:subset
56 SkImage_Lazy::Validator::Validator(sk_sp<SharedGenerator> gen, const SkIRect* subset,
73 if (subset) {
74 if (!bounds.contains(*subset)) {
78 if (*subset != bounds) {
79 // we need a different uniqueID since we really are a subset of the raw generator
83 subset = &bounds;
86 fInfo = info.makeWH(subset->width(), subset->height());
87 fOrigin = SkIPoint::Make(subset->x(), subset->y());
154 // If they are requesting a subset, we have to have a temp allocation for full image, and
155 // then copy the subset into their allocation
254 const SkIRect& subset) const {
255 SkASSERT(fInfo.bounds().contains(subset));
256 SkASSERT(fInfo.bounds() != subset);
258 const SkIRect generatorSubset = subset.makeOffset(fOrigin.x(), fOrigin.y());
284 const SkIRect* subset) {
286 validator(SharedGenerator::Make(std::move(generator)), subset, nullptr, nullptr);