Home | History | Annotate | Download | only in image

Lines Matching refs:Validator

57     struct Validator {
58 Validator(sk_sp<SharedGenerator>, const SkIRect* subset, sk_sp<SkColorSpace> colorSpace);
69 SkImage_Lazy(Validator* validator);
173 SkImage_Lazy::Validator::Validator(sk_sp<SharedGenerator> gen, const SkIRect* subset,
237 SkImage_Lazy::SkImage_Lazy(Validator* validator)
238 : INHERITED(validator->fInfo.width(), validator->fInfo.height(), validator->fUniqueID)
239 , fSharedGenerator(std::move(validator->fSharedGenerator))
240 , fInfo(validator->fInfo)
241 , fOrigin(validator->fOrigin) {
245 fIDRecs[kLegacy_CachedFormat].fOnce([this, validator] {
246 fIDRecs[kLegacy_CachedFormat].fUniqueID = validator->fUniqueID;
634 Validator validator(fSharedGenerator, &generatorSubset, fInfo.refColorSpace());
635 return validator ? sk_sp<SkImage>(new SkImage_Lazy(&validator)) : nullptr;
648 Validator validator(fSharedGenerator, &generatorSubset, target);
649 sk_sp<SkImage> result = validator ? sk_sp<SkImage>(new SkImage_Lazy(&validator)) : nullptr;
659 SkImage_Lazy::Validator validator(SharedGenerator::Make(std::move(generator)), subset, nullptr);
661 return validator ? sk_make_sp<SkImage_Lazy>(&validator) : nullptr;