Lines Matching refs:width
15 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) {
16 const SkPoint center = { SkIntToScalar(width)/2, SkIntToScalar(height)/2 };
26 static SkImage* make_raster_image(int width, int height, SkColor colors[2]) {
27 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(width, height));
28 draw(surface->getCanvas(), width, height, colors);
32 static SkImage* make_picture_image(int width, int height, SkColor colors[2]) {
34 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors);
36 return SkImage::NewFromPicture(picture, SkISize::Make(width, height),
40 typedef SkImage* (*ImageMakerProc)(int width, int height, SkColor colors[2]);
42 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2],
44 SkAutoTUnref<SkImage> image(proc(width, height, colors));