Searched refs:desiredSubset (Results 1 – 9 of 9) sorted by relevance
49 const SkIRect& desiredSubset, int sampleSize, SkColorType dstColorType, in decodeRegion() argument68 SkIRect subset = desiredSubset; in decodeRegion()95 const int extraX = std::max(0, desiredSubset.width() - outX - subset.width()); in decodeRegion()96 const int extraY = std::max(0, desiredSubset.height() - outY - subset.height()); in decodeRegion()
24 const SkIRect& desiredSubset, int sampleSize,
20 bool SkAndroidCodecAdapter::onGetSupportedSubset(SkIRect* desiredSubset) const { in onGetSupportedSubset()21 return this->codec()->getValidSubset(desiredSubset); in onGetSupportedSubset()
198 bool SkWebpCodec::onGetValidSubset(SkIRect* desiredSubset) const { in onGetValidSubset()199 if (!desiredSubset) { in onGetValidSubset()203 if (!this->bounds().contains(*desiredSubset)) { in onGetValidSubset()210 desiredSubset->fLeft = (desiredSubset->fLeft >> 1) << 1; in onGetValidSubset()211 desiredSubset->fTop = (desiredSubset->fTop >> 1) << 1; in onGetValidSubset()
294 bool SkAndroidCodec::getSupportedSubset(SkIRect* desiredSubset) const { in getSupportedSubset()295 if (!desiredSubset || !is_valid_subset(*desiredSubset, fCodec->dimensions())) { in getSupportedSubset()299 return this->onGetSupportedSubset(desiredSubset); in getSupportedSubset()
28 bool onGetSupportedSubset(SkIRect* desiredSubset) const override;
27 bool onGetSupportedSubset(SkIRect* desiredSubset) const override { return true; } in onGetSupportedSubset() argument
164 bool getSupportedSubset(SkIRect* desiredSubset) const;254 virtual bool onGetSupportedSubset(SkIRect* desiredSubset) const = 0;
256 bool getValidSubset(SkIRect* desiredSubset) const { in getValidSubset() argument257 return this->onGetValidSubset(desiredSubset); in getValidSubset()