Home
last modified time | relevance | path

Searched refs:MakeXYWH (Results 1 – 25 of 610) sorted by relevance

12345678910>>...25

/external/webrtc/webrtc/modules/desktop_capture/
Dscreen_capturer_helper_unittest.cc24 DesktopRegion region(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F()
36 region.SetRect(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F()
39 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(1, 2, 3, 4)).Equals(region)); in TEST_F()
42 DesktopRegion(DesktopRect::MakeXYWH(1, 2, 3, 4))); in TEST_F()
44 DesktopRegion(DesktopRect::MakeXYWH(4, 2, 3, 4))); in TEST_F()
46 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(1, 2, 6, 4)).Equals(region)); in TEST_F()
71 DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1))); in TEST_F()
73 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1)).Equals(region)); in TEST_F()
77 DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1))); in TEST_F()
79 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1)).Equals(region)); in TEST_F()
[all …]
Ddesktop_region_unittest.cc52 DesktopRect rect = DesktopRect::MakeXYWH(1, 2, 0, 0); in TEST()
60 DesktopRect rect = DesktopRect::MakeXYWH(1, 2, 3, 4); in TEST()
71 { 1, { DesktopRect::MakeXYWH(10, 10, 10, 10) } }, in TEST()
72 { 2, { DesktopRect::MakeXYWH(10, 10, 10, 10), in TEST()
73 DesktopRect::MakeXYWH(30, 10, 10, 15) } }, in TEST()
74 { 2, { DesktopRect::MakeXYWH(10, 10, 10, 10), in TEST()
75 DesktopRect::MakeXYWH(10, 30, 10, 5) } }, in TEST()
76 { 3, { DesktopRect::MakeXYWH(10, 10, 10, 9), in TEST()
77 DesktopRect::MakeXYWH(30, 10, 15, 10), in TEST()
78 DesktopRect::MakeXYWH(10, 30, 8, 10) } }, in TEST()
[all …]
/external/skia/tests/
DRegionTest.cpp26 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome()
27 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome()
28 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome()
29 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome()
30 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
31 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome()
32 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome()
34 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome()
35 Union(&r, SkIRect::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
36 Union(&r, SkIRect::MakeXYWH(0, 10, 13, 3)); in test_fromchrome()
[all …]
DImageFilterTest.cpp198 SkImageFilter::CropRect leftSideCropRect(SkRect::MakeXYWH(0, 0, 32, 64)); in FilterList()
201 SkImageFilter::CropRect rightSideCropRect(SkRect::MakeXYWH(32, 0, 32, 64)); in FilterList()
216 SkRect::MakeXYWH(0, 0, 50, 50), in FilterList()
217 cropRect ? cropRect->rect() : SkRect::MakeXYWH(0, 0, 100, 100), in FilterList()
242 recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 30, 20)), greenPaint); in FilterList()
327 canvas->drawRect(SkRect::MakeXYWH(0, 0, in make_small_image()
330 canvas->drawRect(SkRect::MakeXYWH(SkIntToScalar(i), in make_small_image()
334 canvas->drawRect(SkRect::MakeXYWH(0, in make_small_image()
338 canvas->drawRect(SkRect::MakeXYWH(SkIntToScalar(i), in make_small_image()
470 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(0, 0, 100, 100)); in DEF_TEST()
[all …]
DClearTest.cpp74 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in clear_op_test()
75 SkIRect outerLeftEdge = SkIRect::MakeXYWH(0, 0, 1, kH); in clear_op_test()
76 SkIRect outerTopEdge = SkIRect::MakeXYWH(0, 0, kW, 1); in clear_op_test()
77 SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); in clear_op_test()
78 SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); in clear_op_test()
82 SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); in clear_op_test()
83 SkIRect innerLeftEdge = SkIRect::MakeXYWH(1, 1, 1, kH-2); in clear_op_test()
84 SkIRect innerTopEdge = SkIRect::MakeXYWH(1, 1, kW-2, 1); in clear_op_test()
85 SkIRect innerRightEdge = SkIRect::MakeXYWH(kW-2, 1, 1, kH-2); in clear_op_test()
86 SkIRect innerBottomEdge = SkIRect::MakeXYWH(1, kH-2, kW-2, 1); in clear_op_test()
/external/skqp/tests/
DRegionTest.cpp26 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome()
27 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome()
28 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome()
29 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome()
30 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
31 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome()
32 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome()
34 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome()
35 Union(&r, SkIRect::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
36 Union(&r, SkIRect::MakeXYWH(0, 10, 13, 3)); in test_fromchrome()
[all …]
DImageFilterTest.cpp198 SkImageFilter::CropRect leftSideCropRect(SkRect::MakeXYWH(0, 0, 32, 64)); in FilterList()
201 SkImageFilter::CropRect rightSideCropRect(SkRect::MakeXYWH(32, 0, 32, 64)); in FilterList()
216 SkRect::MakeXYWH(0, 0, 50, 50), in FilterList()
217 cropRect ? cropRect->rect() : SkRect::MakeXYWH(0, 0, 100, 100), in FilterList()
242 recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 30, 20)), greenPaint); in FilterList()
327 canvas->drawRect(SkRect::MakeXYWH(0, 0, in make_small_image()
330 canvas->drawRect(SkRect::MakeXYWH(SkIntToScalar(i), in make_small_image()
334 canvas->drawRect(SkRect::MakeXYWH(0, in make_small_image()
338 canvas->drawRect(SkRect::MakeXYWH(SkIntToScalar(i), in make_small_image()
470 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(0, 0, 100, 100)); in DEF_TEST()
[all …]
/external/skia/gm/
Dblend.cpp19 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
21 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
24 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
27 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
31 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
34 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
Dshapes.cpp31 fShapes.push_back().setOval(SkRect::MakeXYWH(-5, 25, 200, 100)); in onOnceBeforeDraw()
34 fShapes.push_back().setRect(SkRect::MakeXYWH(95, 75, 125, 100)); in onOnceBeforeDraw()
37 fShapes.push_back().setRectXY(SkRect::MakeXYWH(0, 75, 150, 100), 1e-5f, 1e-5f); in onOnceBeforeDraw()
40 fShapes.push_back().setRectXY(SkRect::MakeXYWH(15, -20, 100, 100), 20, 15); in onOnceBeforeDraw()
45 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(140, -50, 90, 110), 10, 5, 25, 35); in onOnceBeforeDraw()
48 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(160, -60, 60, 90), 10, 60, 50, 30); in onOnceBeforeDraw()
51 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(220, -120, 60, 90), 1, 89, 59, 1); in onOnceBeforeDraw()
55 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii); in onOnceBeforeDraw()
59 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(180, -30, 80, 60), radii2); in onOnceBeforeDraw()
Dimagealphathreshold.cpp23 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
25 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
27 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
29 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
34 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
35 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint()
183 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
184 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
Dtosrgb_colorfilter.cpp26 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 10, 50, 50), nullptr);
45 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 10, 50, 50), &paint);
49 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 70, 50, 50), &paint);
53 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 70, 50, 50), &paint);
Dclip_strokerect.cpp34 SkRect r = SkRect::MakeXYWH(20, 20, 100, 100); in onDraw()
36 SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20); in onDraw()
52 SkRect r2 = SkRect::MakeXYWH(20, 140, 100, 100); in onDraw()
54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw()
Dbitmaptiled.cpp47 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(0.0f, (kTileSize - 50) + offset, in draw_tile_bitmap_with_fractional_offset()
49 SkRect::MakeXYWH(37.0f * i, 0.0f, 32.0f, 1124.0f), nullptr); in draw_tile_bitmap_with_fractional_offset()
51 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH((kTileSize - 50) + offset, 0.0f, in draw_tile_bitmap_with_fractional_offset()
53 SkRect::MakeXYWH(0.0f, 37.0f * i, 1124.0f, 32.0f), nullptr); in draw_tile_bitmap_with_fractional_offset()
Dmatriximagefilter.cpp32 canvas.drawRect(SkRect::MakeXYWH(0, 0, 16, 16), darkPaint); in make_checkerboard()
33 canvas.drawRect(SkRect::MakeXYWH(16, 0, 16, 16), lightPaint); in make_checkerboard()
34 canvas.drawRect(SkRect::MakeXYWH(0, 16, 16, 16), lightPaint); in make_checkerboard()
35 canvas.drawRect(SkRect::MakeXYWH(16, 16, 16, 16), darkPaint); in make_checkerboard()
/external/skqp/gm/
Dblend.cpp19 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
21 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
24 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
27 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
31 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
34 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
Dshapes.cpp31 fShapes.push_back().setOval(SkRect::MakeXYWH(-5, 25, 200, 100)); in onOnceBeforeDraw()
34 fShapes.push_back().setRect(SkRect::MakeXYWH(95, 75, 125, 100)); in onOnceBeforeDraw()
37 fShapes.push_back().setRectXY(SkRect::MakeXYWH(0, 75, 150, 100), 1e-5f, 1e-5f); in onOnceBeforeDraw()
40 fShapes.push_back().setRectXY(SkRect::MakeXYWH(15, -20, 100, 100), 20, 15); in onOnceBeforeDraw()
45 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(140, -50, 90, 110), 10, 5, 25, 35); in onOnceBeforeDraw()
48 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(160, -60, 60, 90), 10, 60, 50, 30); in onOnceBeforeDraw()
51 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(220, -120, 60, 90), 1, 89, 59, 1); in onOnceBeforeDraw()
55 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii); in onOnceBeforeDraw()
59 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(180, -30, 80, 60), radii2); in onOnceBeforeDraw()
Dimagealphathreshold.cpp23 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
25 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
27 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
29 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
34 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
35 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint()
181 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
182 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
Dtosrgb_colorfilter.cpp26 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 10, 50, 50), nullptr);
45 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 10, 50, 50), &paint);
49 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(10, 70, 50, 50), &paint);
53 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(70, 70, 50, 50), &paint);
Dbitmaptiled.cpp52 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(0.0f, (kTileSize - 50) + offset, in draw_tile_bitmap_with_fractional_offset()
54 SkRect::MakeXYWH(37.0f * i, 0.0f, 32.0f, 1124.0f), nullptr); in draw_tile_bitmap_with_fractional_offset()
56 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH((kTileSize - 50) + offset, 0.0f, in draw_tile_bitmap_with_fractional_offset()
58 SkRect::MakeXYWH(0.0f, 37.0f * i, 1124.0f, 32.0f), nullptr); in draw_tile_bitmap_with_fractional_offset()
Dclip_strokerect.cpp34 SkRect r = SkRect::MakeXYWH(20, 20, 100, 100); in onDraw()
36 SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20); in onDraw()
52 SkRect r2 = SkRect::MakeXYWH(20, 140, 100, 100); in onDraw()
54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw()
Dmatriximagefilter.cpp32 canvas.drawRect(SkRect::MakeXYWH(0, 0, 16, 16), darkPaint); in make_checkerboard()
33 canvas.drawRect(SkRect::MakeXYWH(16, 0, 16, 16), lightPaint); in make_checkerboard()
34 canvas.drawRect(SkRect::MakeXYWH(0, 16, 16, 16), lightPaint); in make_checkerboard()
35 canvas.drawRect(SkRect::MakeXYWH(16, 16, 16, 16), darkPaint); in make_checkerboard()
/external/skqp/bench/
DMagnifierBench.cpp43 SkRect::MakeXYWH(SkIntToScalar(w / 4), in onDraw()
68 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
69 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
70 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
71 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
DBlurRectsBench.cpp75 DEF_BENCH(return new BlurRectsNinePatchBench(SkRect::MakeXYWH(10, 10, 100, 100),
76 SkRect::MakeXYWH(20, 20, 60, 60),
78 DEF_BENCH(return new BlurRectsNonNinePatchBench(SkRect::MakeXYWH(10, 10, 100, 100),
79 SkRect::MakeXYWH(50, 50, 10, 10),
/external/skia/bench/
DMagnifierBench.cpp43 SkRect::MakeXYWH(SkIntToScalar(w / 4), in onDraw()
68 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
69 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
70 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
71 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
DBlurRectsBench.cpp75 DEF_BENCH(return new BlurRectsNinePatchBench(SkRect::MakeXYWH(10, 10, 100, 100),
76 SkRect::MakeXYWH(20, 20, 60, 60),
78 DEF_BENCH(return new BlurRectsNonNinePatchBench(SkRect::MakeXYWH(10, 10, 100, 100),
79 SkRect::MakeXYWH(50, 50, 10, 10),

12345678910>>...25