Lines Matching refs:SkCanvas
12 static sk_sp<SkSurface> make_surface(SkCanvas* root, int N, int padLeft, int padTop, in make_surface()
18 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image()
25 SkCanvas* canvas = surface->getCanvas(); in make_image()
93 void onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom) { in onDrawHelper()
118 SkCanvas::Lattice lattice; in onDrawHelper()
161 SkCanvas::Lattice::RectType flags[36]; in onDrawHelper()
162 sk_bzero(flags, 36 * sizeof(SkCanvas::Lattice::RectType)); in onDrawHelper()
163 flags[4] = SkCanvas::Lattice::kTransparent; in onDrawHelper()
164 flags[9] = SkCanvas::Lattice::kTransparent; in onDrawHelper()
165 flags[12] = SkCanvas::Lattice::kTransparent; in onDrawHelper()
166 flags[19] = SkCanvas::Lattice::kTransparent; in onDrawHelper()
169 = SkCanvas::Lattice::kFixedColor; in onDrawHelper()
195 void onDraw(SkCanvas* canvas) override { in onDraw()
219 sk_sp<SkImage> makeImage(SkCanvas* root, int padLeft, int padTop, int padRight, int padBottom) { in makeImage()
222 SkCanvas* canvas = surface->getCanvas(); in makeImage()
271 void onDrawHelper(SkCanvas* canvas, int padLeft, int padTop, int padRight, int padBottom, in onDrawHelper()
282 SkCanvas::Lattice lattice; in onDrawHelper()
289 SkCanvas::Lattice::RectType flags[9]; in onDrawHelper()
290 sk_bzero(flags, 9 * sizeof(SkCanvas::Lattice::RectType)); in onDrawHelper()
291 flags[3] = SkCanvas::Lattice::kFixedColor; in onDrawHelper()
292 flags[4] = SkCanvas::Lattice::kFixedColor; in onDrawHelper()
293 flags[5] = SkCanvas::Lattice::kFixedColor; in onDrawHelper()
295 flags[6] = SkCanvas::Lattice::kTransparent; in onDrawHelper()
296 flags[7] = SkCanvas::Lattice::kTransparent; in onDrawHelper()
297 flags[8] = SkCanvas::Lattice::kTransparent; in onDrawHelper()
317 void onDraw(SkCanvas* canvas) override { in onDraw()
349 SkCanvas::Lattice lattice;