Lines Matching refs:mid
197 // 'mid' is the area where we can ignore the mode because the kernel does not reach to the
199 SkIRect mid, left, right;
215 mid = {srcBounds.left() + radius, midA, srcBounds.right() - radius, midB};
216 if (mid.isEmpty()) {
218 // width of dst and we will not draw mid or right.
219 left = {dstBounds.left(), mid.top(), dstBounds.right(), mid.bottom()};
221 left = {dstBounds.left(), mid.top(), mid.left() , mid.bottom()};
222 right = {mid.right(), mid.top(), dstBounds.right(), mid.bottom()};
232 mid = {midA, srcBounds.top() + radius, midB, srcBounds.bottom() - radius};
234 if (mid.isEmpty()) {
235 left = {mid.left(), dstBounds.top(), mid.right(), dstBounds.bottom()};
237 left = {mid.left(), dstBounds.top(), mid.right(), mid.top() };
238 right = {mid.left(), mid.bottom() , mid.right(), dstBounds.bottom()};
254 // Doing mid separately will cause two draws to occur (left and right batch together). At
255 // small sizes of mid it is worse to issue more draws than to just execute the slightly
256 // more complicated shader that implements the tile mode across mid. This threshold is
257 // very arbitrary right now. It is believed that a 21x44 mid on a Moto G4 is a significant
260 if (!mid.isEmpty() && mid.width()*mid.height() < 256*256) {
261 left.join(mid);
263 mid = SkIRect::MakeEmpty();
291 if (mid.isEmpty()) {
296 convolve(mid);