Lines Matching refs:padLeft
12 static sk_sp<SkSurface> make_surface(SkCanvas* root, int N, int padLeft, int padTop, in make_surface() argument
14 SkImageInfo info = SkImageInfo::MakeN32Premul(N + padLeft + padRight, N + padTop + padBottom); in make_surface()
18 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() argument
24 auto surface(make_surface(root, kSize, padLeft, padTop, padRight, padBottom)); in make_image()
26 canvas->translate((float) padLeft, (float) padTop); in make_image()
32 xDivs[0] = kCap + padLeft; in make_image()
34 xDivs[1] = kCap + kMid + padLeft; in make_image()
36 xDivs[2] = kCap + 2 * kMid + padLeft; in make_image()
38 xDivs[3] = kCap + 3 * kMid + padLeft; in make_image()
93 void onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom) { in onDrawHelper() argument
98 xDivs[0] = padLeft; in onDrawHelper()
102 sk_sp<SkImage> image = make_image(canvas, xDivs + 1, yDivs + 1, padLeft, padTop, in onDrawHelper()
126 SkIRect bounds = SkIRect::MakeLTRB(padLeft, padTop, in onDrawHelper()
219 sk_sp<SkImage> makeImage(SkCanvas* root, int padLeft, int padTop, int padRight, int padBottom) { in makeImage() argument
221 auto surface(make_surface(root, kSize, padLeft, padTop, padRight, padBottom)); in makeImage()
271 void onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom, in onDrawHelper() argument
278 sk_sp<SkImage> image = makeImage(canvas, padLeft, padTop, padRight, padBottom); in onDrawHelper()