Home
last modified time | relevance | path

Searched refs:MakeLTRB (Results 1 – 25 of 187) sorted by relevance

12345678

/third_party/skia/docs/examples/
DCanvas_saveLayer_4.cpp22 canvas->drawRect(SkRect::MakeLTRB(10, 10, 60, 60), pRed); in draw()
23 canvas->drawRect(SkRect::MakeLTRB(150, 10, 200, 60), pRed); in draw()
25 canvas->drawRect(SkRect::MakeLTRB(30, 10, 80, 60), pSolidBlue); in draw()
26 canvas->drawRect(SkRect::MakeLTRB(170, 10, 220, 60), pThirtyBlue); in draw()
32 canvas->drawRect(SkRect::MakeLTRB(10, 70, 60, 120), pRed); in draw()
33 canvas->drawRect(SkRect::MakeLTRB(150, 70, 200, 120), pRed); in draw()
40 canvas->drawRect(SkRect::MakeLTRB(30, 70, 80, 120), pSolidBlue); in draw()
41 canvas->drawRect(SkRect::MakeLTRB(170, 70, 220, 120), pThirtyBlue); in draw()
50 canvas->drawRect(SkRect::MakeLTRB(10, 130, 60, 180), pRed); in draw()
51 canvas->drawRect(SkRect::MakeLTRB(150, 130, 200, 180), pRed); in draw()
[all …]
/third_party/skia/tests/
DQuickRejectTest.cpp53 SkRect bounds = SkRect::MakeLTRB(50, 50, 70, 70); in test_layers()
61 SkRect r0 = SkRect::MakeLTRB(-50.0f, -50.0f, 50.0f, 50.0f); in test_quick_reject()
62 SkRect r1 = SkRect::MakeLTRB(-50.0f, 110.0f, 50.0f, 120.0f); in test_quick_reject()
63 SkRect r2 = SkRect::MakeLTRB(110.0f, -50.0f, 120.0f, 50.0f); in test_quick_reject()
64 SkRect r3 = SkRect::MakeLTRB(-120.0f, -50.0f, 120.0f, 50.0f); in test_quick_reject()
65 SkRect r4 = SkRect::MakeLTRB(-50.0f, -120.0f, 50.0f, 120.0f); in test_quick_reject()
66 SkRect r5 = SkRect::MakeLTRB(-120.0f, -120.0f, 120.0f, 120.0f); in test_quick_reject()
67 SkRect r6 = SkRect::MakeLTRB(-120.0f, -120.0f, -110.0f, -110.0f); in test_quick_reject()
68 SkRect r7 = SkRect::MakeLTRB(SK_ScalarNaN, -50.0f, 50.0f, 50.0f); in test_quick_reject()
69 SkRect r8 = SkRect::MakeLTRB(-50.0f, SK_ScalarNaN, 50.0f, 50.0f); in test_quick_reject()
[all …]
DReadPixelsTest.cpp277 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10),
279 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4),
281 SkIRect::MakeLTRB(-10, -10, -1, -1),
283 SkIRect::MakeLTRB(-10, -10, 0, 0),
285 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4),
287 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4),
289 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0),
291 SkIRect::MakeLTRB(3 * DEV_W / 4, -10, DEV_W + 10, DEV_H / 4),
293 SkIRect::MakeLTRB(DEV_W / 4, -10, 3 * DEV_W / 4, DEV_H / 4),
295 SkIRect::MakeLTRB(DEV_W + 1, -10, DEV_W + 10, -1),
[all …]
DWritePixelsTest.cpp330 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels()
332 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in test_write_pixels()
334 SkIRect::MakeLTRB(-10, -10, -1, -1), in test_write_pixels()
336 SkIRect::MakeLTRB(-10, -10, 0, 0), in test_write_pixels()
338 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), in test_write_pixels()
340 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), in test_write_pixels()
342 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, 0), in test_write_pixels()
344 SkIRect::MakeLTRB(3 * DEV_W / 4, -10, DEV_W + 10, DEV_H / 4), in test_write_pixels()
346 SkIRect::MakeLTRB(DEV_W / 4, -10, 3 * DEV_W / 4, DEV_H / 4), in test_write_pixels()
348 SkIRect::MakeLTRB(DEV_W + 1, -10, DEV_W + 10, -1), in test_write_pixels()
[all …]
DSkGlyphTest.cpp16 REPORTER_ASSERT(reporter, a.iRect() == SkIRect::MakeLTRB(1, 1, 10, 10)); in DEF_TEST()
19 REPORTER_ASSERT(reporter, a.iRect() == SkIRect::MakeLTRB(1, 1, 10, 10)); in DEF_TEST()
27 REPORTER_ASSERT(reporter, acc.iRect() == SkIRect::MakeLTRB(9, 9, 10, 10)); in DEF_TEST()
35 REPORTER_ASSERT(reporter, acc.iRect() == SkIRect::MakeLTRB(-10, -10, 29, 29)); in DEF_TEST()
DRecordDrawTest.cpp210 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[0], SkRect::MakeLTRB(0, 0, 40, 40))); in DEF_TEST()
211 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[1], SkRect::MakeLTRB(0, 0, 40, 40))); in DEF_TEST()
212 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[2], SkRect::MakeLTRB(0, 0, 40, 40))); in DEF_TEST()
213 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[3], SkRect::MakeLTRB(0, 0, 40, 40))); in DEF_TEST()
257 SkRect layerBounds = SkRect::MakeLTRB(10, 10, 40, 40);
259 recorder.drawRect(SkRect::MakeLTRB(20, 20, 30, 30), SkPaint());
264 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[0], SkRect::MakeLTRB(10, 10, 40, 40)));
265 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[1], SkRect::MakeLTRB(20, 20, 30, 30)));
266 REPORTER_ASSERT(r, sloppy_rect_eq(bounds[2], SkRect::MakeLTRB(10, 10, 40, 40)));
DClipStackTest.cpp54 SkRect r = SkRect::MakeLTRB(1, 2, 103, 104); in test_assign_and_comparison()
56 r = SkRect::MakeLTRB(4, 5, 56, 57); in test_assign_and_comparison()
62 r = SkRect::MakeLTRB(14, 15, 16, 17); in test_assign_and_comparison()
77 r = SkRect::MakeLTRB(14, 15, 16, 17); in test_assign_and_comparison()
86 r = SkRect::MakeLTRB(14, 15, 16, 17); in test_assign_and_comparison()
104 r = SkRect::MakeLTRB(24, 25, 26, 27); in test_assign_and_comparison()
373 SkRect rect = SkRect::MakeLTRB(0, 0, 10, 10); in test_rect_inverse_fill()
466 const SkRect wideOpen = SkRect::MakeLTRB(-1000, -1000, 1000, 1000); in test_path_replace()
501 SkRect overlapLeft = SkRect::MakeLTRB(10, 10, 50, 50); in test_rect_merging()
502 SkRect overlapRight = SkRect::MakeLTRB(40, 40, 80, 80); in test_rect_merging()
[all …]
DDebugLayerManagerTest.cpp27 canvas->drawOval(SkRect::MakeLTRB(1,1,99,99), paint); in test_basic()
29 SkIRect dirtyRectFull = SkIRect::MakeLTRB(0, 0, layerWidth, layerHeight); in test_basic()
35 canvas->drawOval(SkRect::MakeLTRB(40,40,60,60), paint); in test_basic()
37 SkIRect dirtyRectPartial = SkIRect::MakeLTRB(40,40,60,60); in test_basic()
DReadWritePixelsGpuTest.cpp91 SkIRect::MakeLTRB(-10, -10, w + 10, h + 10), in make_long_rect_array()
93 SkIRect::MakeLTRB(w/4, h/4, 3*w/4, 3*h/4), in make_long_rect_array()
95 SkIRect::MakeLTRB(-10, -10, -1, -1), in make_long_rect_array()
97 SkIRect::MakeLTRB(-10, -10, 0, 0), in make_long_rect_array()
99 SkIRect::MakeLTRB(-10, -10, w/4, h/4), in make_long_rect_array()
101 SkIRect::MakeLTRB(-10, -10, w + 10, h/4), in make_long_rect_array()
103 SkIRect::MakeLTRB(-10, -10, w + 10, 0), in make_long_rect_array()
105 SkIRect::MakeLTRB(3*w/4, -10, w + 10, h/4), in make_long_rect_array()
107 SkIRect::MakeLTRB(w/4, -10, 3*w/4, h/4), in make_long_rect_array()
109 SkIRect::MakeLTRB(w + 1, -10, w + 10, -1), in make_long_rect_array()
[all …]
DRRectInPathTest.cpp183 SkRect r = SkRect::MakeLTRB(0, 0, 1009, 33554432.0); in test_tricky_radii()
270 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_basic()
320 SkRect rect2 = SkRect::MakeLTRB(0.358211994f, 0.755430222f, 0.872866154f, in test_round_rect_basic()
344 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_rects()
373 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_ovals()
387 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_general()
407 SkRect rect = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in test_round_rect_iffy_parameters()
428 const SkRect rectx = SkRect::MakeLTRB(min, min, max, big); in test_skbug_3239()
429 const SkRect recty = SkRect::MakeLTRB(min, min, big, max); in test_skbug_3239()
DGrQuadCropTest.cpp22 static const SkRect kDrawRect = SkRect::MakeLTRB(-5.f, -6.f, 10.f, 11.f);
183 static const SkRect kInsideClipRect = SkRect::MakeLTRB(-kInsideEdge, -kInsideEdge, in test_axis_aligned_all_clips()
185 static const SkRect kContainsClipRect = SkRect::MakeLTRB(-kOutsideEdge, -kOutsideEdge, in test_axis_aligned_all_clips()
187 static const SkRect kXYAxesClipRect = SkRect::MakeLTRB(-kIntersectEdge, -kIntersectEdge, in test_axis_aligned_all_clips()
189 static const SkRect kXAxisClipRect = SkRect::MakeLTRB(-kIntersectEdge, -kOutsideEdge, in test_axis_aligned_all_clips()
191 static const SkRect kYAxisClipRect = SkRect::MakeLTRB(-kOutsideEdge, -kIntersectEdge, in test_axis_aligned_all_clips()
/third_party/skia/gm/
Dbigrect.cpp35 SkRect horiz = SkRect::MakeLTRB(-big, 5, big, 10); in draw_big_rect()
38 SkRect vert = SkRect::MakeLTRB(5, -big, 10, big); in draw_big_rect()
41 SkRect fromLeft = SkRect::MakeLTRB(-big, 20, 17, 25); in draw_big_rect()
44 SkRect fromTop = SkRect::MakeLTRB(20, -big, 25, 17); in draw_big_rect()
47 SkRect fromRight = SkRect::MakeLTRB(28, 20, big, 25); in draw_big_rect()
50 SkRect fromBottom = SkRect::MakeLTRB(20, 28, 25, big); in draw_big_rect()
53 SkRect leftBorder = SkRect::MakeLTRB(-2, -1, 0, 35); in draw_big_rect()
56 SkRect topBorder = SkRect::MakeLTRB(-1, -2, 35, 0); in draw_big_rect()
59 SkRect rightBorder = SkRect::MakeLTRB(34, -1, 36, 35); in draw_big_rect()
62 SkRect bottomBorder = SkRect::MakeLTRB(-1, 34, 35, 36); in draw_big_rect()
[all …]
Dcomplexclip4.cpp78 emulateDeviceRestriction(canvas, SkIRect::MakeLTRB(100, 100, 300, 300)); in onDraw()
80 emulateClipRectReplace(canvas, SkRect::MakeLTRB(100, 200, 400, 500), fDoAAClip); in onDraw()
81 canvas->drawRect(SkRect::MakeLTRB(100, 200, 400, 500), p); in onDraw()
86 emulateDeviceRestriction(canvas, SkIRect::MakeLTRB(500, 100, 800, 300)); in onDraw()
96 canvas->drawRect(SkRect::MakeLTRB(500, 200, 900, 500), p); in onDraw()
101 emulateDeviceRestriction(canvas, SkIRect::MakeLTRB(500, 500, 800, 700)); in onDraw()
105 canvas, SkRRect::MakeOval(SkRect::MakeLTRB(500, 600, 900, 750)), fDoAAClip); in onDraw()
106 canvas->drawRect(SkRect::MakeLTRB(500, 600, 900, 750), p); in onDraw()
112 canvas->clipRect(SkRect::MakeLTRB(100, 400, 300, 750), in onDraw()
118 emulateDeviceRestriction(canvas, SkIRect::MakeLTRB(150, 450, 250, 700)); in onDraw()
Daarecteffect.cpp61 SkRect::MakeLTRB(5.f, 1.f, 30.f, 25.f), in onDraw()
63 SkRect::MakeLTRB(5.5f, 0.5f, 29.5f, 24.5f), in onDraw()
65 SkRect::MakeLTRB(5.25f, 0.5f, 5.75f, 24.5f), in onDraw()
66 SkRect::MakeLTRB(5.5f, 0.5f, 29.5f, 0.75f), in onDraw()
68 SkRect::MakeLTRB(5.55f, 0.5f, 5.75f, 24.5f), in onDraw()
69 SkRect::MakeLTRB(5.5f, .05f, 29.5f, .25f), in onDraw()
71 SkRect::MakeLTRB(5.05f, .55f, 5.45f, .85f), in onDraw()
Doverdrawcanvas.cpp40 overdrawCanvas.drawRect(SkRect::MakeLTRB(10, 10, 200, 200), SkPaint()); in DEF_SIMPLE_GM_BG()
41 overdrawCanvas.drawRect(SkRect::MakeLTRB(20, 20, 190, 190), SkPaint()); in DEF_SIMPLE_GM_BG()
42 overdrawCanvas.drawRect(SkRect::MakeLTRB(30, 30, 180, 180), SkPaint()); in DEF_SIMPLE_GM_BG()
43 overdrawCanvas.drawRect(SkRect::MakeLTRB(40, 40, 170, 170), SkPaint()); in DEF_SIMPLE_GM_BG()
44 overdrawCanvas.drawRect(SkRect::MakeLTRB(50, 50, 160, 160), SkPaint()); in DEF_SIMPLE_GM_BG()
45 overdrawCanvas.drawRect(SkRect::MakeLTRB(60, 60, 150, 150), SkPaint()); in DEF_SIMPLE_GM_BG()
Dclip_error.cpp34 canvas->clipRect(SkRect::MakeLTRB(0, 0, 1081, 665)); in draw_text()
35 canvas->drawRect(SkRect::MakeLTRB(0, 0, 1081, 665), clearPaint); in draw_text()
73 canvas->clipRect(SkRect::MakeLTRB(0, 0, WIDTH, 256)); in onDraw()
79 canvas->clipRect(SkRect::MakeLTRB(0, 256, WIDTH, 510)); in onDraw()
Dcrbug_892988.cpp24 canvas->drawRect(SkRect::MakeLTRB(11.5, 0.5, 245.5, 245.5), paint1);
25 canvas->clipRect(SkRect::MakeLTRB(12, 1, 244, 244), true);
32 canvas->drawRect(SkRect::MakeLTRB(12, 1, 244, 244), paint2);
Dhighcontrastfilter.cpp63 SkRect bounds = SkRect::MakeLTRB(0.0f, 0.0f, 1.0f, 1.0f); in draw_scene()
69 bounds = SkRect::MakeLTRB(0.1f, 0.2f, 0.9f, 0.4f); in draw_scene()
80 bounds = SkRect::MakeLTRB(0.1f, 0.8f, 0.9f, 1.0f); in draw_scene()
87 bounds = SkRect::MakeLTRB(0.1f, 0.4f, 0.9f, 0.6f); in draw_scene()
96 bounds = SkRect::MakeLTRB(0.1f, 0.6f, 0.9f, 0.8f); in draw_scene()
Dovals.cpp149 const SkRect kOval = SkRect::MakeLTRB(-20, -30, 20, 30); in onDraw()
191 SkRect oval = SkRect::MakeLTRB(-20, -60, 20, 60); in onDraw()
207 SkRect oval = SkRect::MakeLTRB(-80, -30, 80, 30); in onDraw()
224 SkRect oval = SkRect::MakeLTRB(0, -60, 1, 60); in onDraw()
239 SkRect oval = SkRect::MakeLTRB(-80, -1, 80, 0); in onDraw()
281 SkRect oval = SkRect::MakeLTRB(-30, -30, 30, 30); in onDraw()
Dblurredclippedcircle.cpp53 SkRect clipRect1 = SkRect::MakeLTRB(0, 0, kWidth, kHeight); in onDraw()
63 SkRect clipRect2 = SkRect::MakeLTRB(8, 8, 288, 288); in onDraw()
67 SkRect r = SkRect::MakeLTRB(4, 4, 292, 292); in onDraw()
Dcubicpaths.cpp66 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 150)); in onDraw()
68 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 100)); in onDraw()
70 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 30, 150)); in onDraw()
72 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 10, 150)); in onDraw()
76 drawOne(canvas, fFlipped, SkRect::MakeLTRB(0, 0, 150, 80)); in onDraw()
78 drawOne(canvas, fFlipped, SkRect::MakeLTRB(0, 0, 100, 80)); in onDraw()
80 drawOne(canvas, fFlipped, SkRect::MakeLTRB(0, 0, 150, 30)); in onDraw()
82 drawOne(canvas, fFlipped, SkRect::MakeLTRB(0, 0, 150, 10)); in onDraw()
/third_party/skia/samplecode/
DSampleAARects.cpp72 rect = SkRect::MakeLTRB(0.f, in onDrawContent()
79 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
86 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
93 rect = SkRect::MakeLTRB(0.75f, in onDrawContent()
102 rect = SkRect::MakeLTRB(0.0f, in onDrawContent()
115 rect = SkRect::MakeLTRB(-20.0f, in onDrawContent()
125 rect = SkRect::MakeLTRB(0.0f, in onDrawContent()
135 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
146 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
157 rect = SkRect::MakeLTRB(0.1f, in onDrawContent()
DSampleClock.cpp44 rect = SkRect::MakeLTRB(200-4, -4, 240+4, 4); in onDrawContent()
68 rect = SkRect::MakeLTRB(231.5f, -2.5f, 242.5, 2.5f); in onDrawContent()
108 rect = SkRect::MakeLTRB(-20-7, -7, 80+7, 7); in onDrawContent()
129 rect = SkRect::MakeLTRB(-56-5, -5, 224+5, 5); in onDrawContent()
151 rect = SkRect::MakeLTRB(-60-3, -3, 166+3, 3); in onDrawContent()
159 rect = SkRect::MakeLTRB(-20, -20, 20, 20); in onDrawContent()
169 rect = SkRect::MakeLTRB(-20+190, -20, 20+190, 20); in onDrawContent()
181 rect = SkRect::MakeLTRB(-6, -6, 6, 6); in onDrawContent()
188 rect = SkRect::MakeLTRB(-6, -6, 6, 6); in onDrawContent()
195 rect = SkRect::MakeLTRB(-284, -284, 284, 284); in onDrawContent()
/third_party/skia/modules/sksg/tests/
DSGTest.cpp200 SkRect::MakeLTRB(400, 200, 600, 400), in inval_test1()
269 SkRect::MakeLTRB(100, 100, 300, 300), in inval_test2()
270 SkRect::MakeLTRB( 0, 0, 300, 300), in inval_test2()
282 SkRect::MakeLTRB(100, 100, 200, 300), in inval_test2()
283 SkRect::MakeLTRB(100, 100, 300, 300), in inval_test2()
314 SkRect::MakeLTRB(50, 75, 350, 175), in inval_test3()
315 SkRect::MakeLTRB(0, 0, 350, 175), in inval_test3()
324 SkRect::MakeLTRB(50, 75, 350, 175), in inval_test3()
325 SkRect::MakeLTRB(50, 75, 350, 175), in inval_test3()
334 SkRect::MakeLTRB(50, 75, 350, 175), in inval_test3()
[all …]
/third_party/skia/bench/
DTableBench.cpp46 SkRect cell = SkRect::MakeLTRB(col * kCellWidth, in onDraw()
52 SkRect bottom = SkRect::MakeLTRB(col * kCellWidth, in onDraw()
58 SkRect right = SkRect::MakeLTRB(col * kCellWidth + (kCellWidth-SK_Scalar1), in onDraw()

12345678