Home
last modified time | relevance | path

Searched refs:padTop (Results 1 – 2 of 2) sorted by relevance

/external/skia/gm/
Dlattice.cpp12 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()
33 yDivs[0] = kCap + padTop; in make_image()
35 yDivs[1] = kCap + kMid + padTop; in make_image()
37 yDivs[2] = kCap + 2 * kMid + padTop; in make_image()
39 yDivs[3] = kCap + 3 * kMid + padTop; in make_image()
93 void onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom) { in onDrawHelper() argument
[all …]
/external/skqp/gm/
Dlattice.cpp12 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()
33 yDivs[0] = kCap + padTop; in make_image()
35 yDivs[1] = kCap + kMid + padTop; in make_image()
37 yDivs[2] = kCap + 2 * kMid + padTop; in make_image()
39 yDivs[3] = kCap + 3 * kMid + padTop; in make_image()
93 void onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom) { in onDrawHelper() argument
[all …]