Searched refs:imageDims (Results 1 – 2 of 2) sorted by relevance
35 inline SubsetType adjust_subset_rect(const SkISize& imageDims, SkIRect* subset, int* outX, in adjust_subset_rect() argument46 int width = SkTMin(imageDims.width() - left, subset->width() - *outX); in adjust_subset_rect()47 int height = SkTMin(imageDims.height() - top, subset->height() - *outY); in adjust_subset_rect()
30 static inline bool is_valid_subset(const SkIRect& subset, const SkISize& imageDims) { in is_valid_subset() argument31 return SkIRect::MakeSize(imageDims).contains(subset); in is_valid_subset()