Lines Matching refs:dstBounds
131 void adjust_bounds_to_granularity(SkIRect* dstBounds, in adjust_bounds_to_granularity() argument
143 dstBounds->fRight = srcBounds.fRight + rightAdj; in adjust_bounds_to_granularity()
144 if (dstBounds->fRight > maxWidth) { in adjust_bounds_to_granularity()
145 dstBounds->fRight = maxWidth; in adjust_bounds_to_granularity()
146 dstBounds->fLeft = 0; in adjust_bounds_to_granularity()
148 dstBounds->fLeft = srcBounds.fLeft - srcBounds.fLeft % granularity.width; in adjust_bounds_to_granularity()
151 dstBounds->fLeft = srcBounds.fLeft; in adjust_bounds_to_granularity()
152 dstBounds->fRight = srcBounds.fRight; in adjust_bounds_to_granularity()
162 dstBounds->fBottom = srcBounds.fBottom + bottomAdj; in adjust_bounds_to_granularity()
163 if (dstBounds->fBottom > maxHeight) { in adjust_bounds_to_granularity()
164 dstBounds->fBottom = maxHeight; in adjust_bounds_to_granularity()
165 dstBounds->fTop = 0; in adjust_bounds_to_granularity()
167 dstBounds->fTop = srcBounds.fTop - srcBounds.fTop % granularity.height; in adjust_bounds_to_granularity()
170 dstBounds->fTop = srcBounds.fTop; in adjust_bounds_to_granularity()
171 dstBounds->fBottom = srcBounds.fBottom; in adjust_bounds_to_granularity()