Lines Matching refs:bounds
76 const SkRect& bounds, const int32_t xDivs[], int numXDivs, in fillRow() argument
78 SkScalar vx = bounds.fLeft; in fillRow()
92 verts->set(bounds.fRight, vy); verts++; in fillRow()
103 void SkNinePatch::DrawMesh(SkCanvas* canvas, const SkRect& bounds, in DrawMesh() argument
108 if (bounds.isEmpty() || bitmap.width() == 0 || bitmap.height() == 0) { in DrawMesh()
139 canvas->drawBitmapRect(bitmap, NULL, bounds, paint); in DrawMesh()
161 if (bounds.width() >= fixed) in DrawMesh()
162 stretchX = (bounds.width() - fixed) / stretchSize; in DrawMesh()
164 stretchX = -bounds.width() / fixed; in DrawMesh()
173 if (bounds.height() >= fixed) in DrawMesh()
174 stretchY = (bounds.height() - fixed) / stretchSize; in DrawMesh()
176 stretchY = -bounds.height() / fixed; in DrawMesh()
182 SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()), in DrawMesh()
211 SkScalar vy = bounds.fTop; in DrawMesh()
212 fillRow(verts, texs, vy, 0, bounds, xDivs, numXDivs, in DrawMesh()
231 fillRow(verts, texs, vy, ty, bounds, xDivs, numXDivs, in DrawMesh()
236 fillRow(verts, texs, bounds.fBottom, SkIntToScalar(bitmap.height()), in DrawMesh()
237 bounds, xDivs, numXDivs, stretchX, bitmap.width()); in DrawMesh()
301 void SkNinePatch::DrawNine(SkCanvas* canvas, const SkRect& bounds, in DrawNine() argument
330 SkNinePatch::DrawMesh(canvas, bounds, bitmap, in DrawNine()
333 drawNineViaRects(canvas, bounds, bitmap, margins, paint); in DrawNine()