Lines Matching defs:height
28 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) {
29 const SkPoint center = { SkIntToScalar(width)/2, SkIntToScalar(height)/2 };
38 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) {
39 auto surface(SkSurface::MakeRasterN32Premul(width, height));
40 draw(surface->getCanvas(), width, height, colors);
44 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) {
46 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors);
48 {width, height}, nullptr, nullptr,
53 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]);
55 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2],
57 sk_sp<SkImage> image(proc(width, height, colors));
73 int hh = height / 2;