Lines Matching refs:size

15                                         int size) {  in rotated_checkerboard_shader()  argument
17 bm.allocN32Pixels(2 * size, 2 * size); in rotated_checkerboard_shader()
19 bm.eraseArea(SkIRect::MakeLTRB(0, 0, size, size), c2); in rotated_checkerboard_shader()
20 bm.eraseArea(SkIRect::MakeLTRB(size, size, 2 * size, 2 * size), c2); in rotated_checkerboard_shader()
62 static void test_text(SkCanvas* canvas, SkScalar size, in test_text() argument
69 canvas->drawText(text, strlen(text), 32, size / 2 + Y, type); in test_text()
71 exercise_draw_pos_text(canvas, text, 32, size / 2 + Y + lineSpacing, type); in test_text()
73 size / 2 + Y + 2 * lineSpacing, type); in test_text()
79 const SkScalar size = 256; variable
94 SkRect rect = SkRect::MakeLTRB(8, 8 + translate, size - 8,
95 size - 8 + translate);
99 canvas->translate(size, 0);
106 canvas->translate(-size, size);
108 SkPoint points[8] = {{size / 2, 8 + translate},
109 {size / 2, 8 + translate + delta},
110 {8, size / 2 + translate},
111 {8, size / 2 + translate + delta},
112 {size / 2, size - 8 + translate},
113 {size / 2, size - 8 + translate + delta},
114 {size - 8, size / 2 + translate},
115 {size - 8, size / 2 + translate + delta}};
122 canvas->translate(size, 0);
123 test_text(canvas, size, SK_ColorBLACK, translate);
130 canvas->drawCircle(size / 2, size / 2, size / 2 - 10, stroke);
131 canvas->drawCircle(3 * size / 2, size / 2, size / 2 - 10, stroke);
132 canvas->drawCircle(size / 2, 384, size / 2 - 10, stroke);
133 canvas->translate(size, size);
134 test_text(canvas, size, SK_ColorCYAN, 0.0f);