Lines Matching refs:subset
46 * Note: the contents of the backing storage outside of the subset rect are undefined.
57 const SkIRect& subset() const { return fSubset; }
66 * Draw this SpecialImage into the canvas, automatically taking into account the image's subset
74 const SkIRect& subset,
77 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
80 static sk_sp<SkSpecialImage> CopyFromRaster(const SkIRect& subset,
85 const SkIRect& subset,
115 * Extract a subset of this special image and return it as a special image.
116 * It may or may not point to the same backing memory. The input 'subset' is relative to the
119 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
122 * Create an SkImage from the contents of this special image optionally extracting a subset.
124 * Note: when no 'subset' parameter is specified the the entire SkSpecialImage will be
126 * When the 'subset' parameter is specified the returned image will be tight even if that
127 * entails a copy! The 'subset' is relative to this special image's content rect.
129 sk_sp<SkImage> asImage(const SkIRect* subset = nullptr) const;
145 * coordinates must be mapped from the content rect (e.g. relative to 'subset()') to the proxy's
146 * space (offset by subset().topLeft()).
153 * The returned bitmap represents the subset accessed by this image, thus (0,0) refers to the
154 * top-left corner of 'subset'.
159 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps&);