Lines Matching refs:margins
255 const SkBitmap& bitmap, const SkIRect& margins, in drawNineViaRects() argument
258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() in drawNineViaRects()
261 0, margins.fTop, bitmap.height() - margins.fBottom, bitmap.height() in drawNineViaRects()
264 dst.fLeft, dst.fLeft + SkIntToScalar(margins.fLeft), in drawNineViaRects()
265 dst.fRight - SkIntToScalar(margins.fRight), dst.fRight in drawNineViaRects()
268 dst.fTop, dst.fTop + SkIntToScalar(margins.fTop), in drawNineViaRects()
269 dst.fBottom - SkIntToScalar(margins.fBottom), dst.fBottom in drawNineViaRects()
273 dstX[1] = dstX[0] + (dstX[3] - dstX[0]) * SkIntToScalar(margins.fLeft) / in drawNineViaRects()
274 (SkIntToScalar(margins.fLeft) + SkIntToScalar(margins.fRight)); in drawNineViaRects()
279 dstY[1] = dstY[0] + (dstY[3] - dstY[0]) * SkIntToScalar(margins.fTop) / in drawNineViaRects()
280 (SkIntToScalar(margins.fTop) + SkIntToScalar(margins.fBottom)); in drawNineViaRects()
302 const SkBitmap& bitmap, const SkIRect& margins, in DrawNine() argument
314 xDivs[0] = margins.fLeft; in DrawNine()
315 xDivs[1] = bitmap.width() - margins.fRight; in DrawNine()
316 yDivs[0] = margins.fTop; in DrawNine()
317 yDivs[1] = bitmap.height() - margins.fBottom; in DrawNine()
320 xDivs[0] = bitmap.width() * margins.fLeft / in DrawNine()
321 (margins.fLeft + margins.fRight); in DrawNine()
325 yDivs[0] = bitmap.height() * margins.fTop / in DrawNine()
326 (margins.fTop + margins.fBottom); in DrawNine()
333 drawNineViaRects(canvas, bounds, bitmap, margins, paint); in DrawNine()