Home | History | Annotate | Download | only in gm

Lines Matching refs:HEIGHT

18 #define HEIGHT 500
23 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint);
25 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint);
27 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint);
29 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint);
34 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
35 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
62 return SkISize::Make(WIDTH, HEIGHT);
68 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f);
73 SkRect r = SkRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100);
89 // Create a 'width' x 'height' SkSurface that matches the colorType of 'canvas' as
91 static sk_sp<SkSurface> make_color_matching_surface(SkCanvas* canvas, int width, int height,
105 SkImageInfo info = SkImageInfo::Make(width, height, ct, at, std::move(cs));
122 return SkISize::Make(WIDTH, HEIGHT);
128 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f);
133 sk_sp<SkSurface> surface(make_color_matching_surface(canvas, WIDTH, HEIGHT,
143 canvas->clipRect(SkRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100));
161 bitmap.allocPixels(SkImageInfo::MakeS32(WIDTH, HEIGHT, kPremul_SkAlphaType));
165 SkRect rect = SkRect::MakeWH(WIDTH, HEIGHT);
177 DEF_SIMPLE_GM_BG(imagealphathreshold_image, canvas, WIDTH * 2, HEIGHT, SK_ColorBLACK) {
181 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
182 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);