Lines Matching refs:dst
64 static void drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, in drawStretchyPatch() argument
70 canvas->drawRect(dst, paint); in drawStretchyPatch()
80 canvas->drawRect(dst, paint); in drawStretchyPatch()
85 canvas->drawBitmapRect(bitmap, SkRect::Make(src), dst, &paint); in drawStretchyPatch()
163 SkRect dst; in Draw() local
207 dst.fTop = bounds.fTop; in Draw()
228 dst.fLeft = bounds.fLeft; in Draw()
231 dst.fBottom = bounds.fBottom; in Draw()
236 dst.fBottom = dst.fTop + calculateStretch(bounds.fBottom, dst.fTop, in Draw()
242 dst.fBottom = dst.fTop + SkIntToScalar(srcYSize); in Draw()
257 dst.fRight = bounds.fRight; in Draw()
261 dst.fRight = dstRights[i]; in Draw()
265 dst.fRight = dst.fLeft + calculateStretch(bounds.fRight, dst.fLeft, in Draw()
271 dst.fRight = dst.fLeft + SkIntToScalar(srcXSize); in Draw()
274 dstRights[i] = dst.fRight; in Draw()
285 if (dst.fRight <= dst.fLeft || dst.fBottom <= dst.fTop) { in Draw()
295 dst.round(&idst); in Draw()
306 SkScalarToFloat(dst.fLeft), SkScalarToFloat(dst.fTop), in Draw()
307 SkScalarToFloat(dst.width()), SkScalarToFloat(dst.height())); in Draw()
308 if (2 == src.width() && SkIntToScalar(5) == dst.width()) { in Draw()
312 drawStretchyPatch(canvas, src, dst, bitmap, *paint, initColor, in Draw()
318 dst.fLeft = dst.fRight; in Draw()
321 dst.fTop = dst.fBottom; in Draw()