Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
DClearTest.cpp56 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
57 SkIRect outerLeftEdge = SkIRect::MakeXYWH(0, 0, 1, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
58 SkIRect outerTopEdge = SkIRect::MakeXYWH(0, 0, kW, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
59 SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
60 SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
64 SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
65 SkIRect innerLeftEdge = SkIRect::MakeXYWH(1, 1, 1, kH-2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
66 SkIRect innerTopEdge = SkIRect::MakeXYWH(1, 1, kW-2, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
67 SkIRect innerRightEdge = SkIRect::MakeXYWH(kW-2, 1, 1, kH-2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
68 SkIRect innerBottomEdge = SkIRect::MakeXYWH(1, kH-2, kW-2, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DVkClearTests.cpp133 rect = SkIRect::MakeXYWH(0, 0, subWidth, subHeight); in sub_clear_test()
135 rect = SkIRect::MakeXYWH(subWidth, 0, subWidth, subHeight); in sub_clear_test()
137 rect = SkIRect::MakeXYWH(0, subHeight, subWidth, subHeight); in sub_clear_test()
148 rect = SkIRect::MakeXYWH(subWidth, subHeight, subWidth, subHeight); in sub_clear_test()
164 rect = SkIRect::MakeXYWH(0, 0, subWidth, subHeight); in sub_clear_test()
166 rect = SkIRect::MakeXYWH(subWidth, 0, subWidth, subHeight); in sub_clear_test()
168 rect = SkIRect::MakeXYWH(0, subHeight, subWidth, subHeight); in sub_clear_test()
170 rect = SkIRect::MakeXYWH(subWidth, subHeight, subWidth, subHeight); in sub_clear_test()
DBlendTest.cpp131 {SkRect::MakeXYWH(0, 0, 5, 5), SkIPoint::Make(7, 7), SkIPoint::Make(2, 2)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
132 {SkRect::MakeXYWH(2, 2, 5, 5), SkIPoint::Make(1, 1), SkIPoint::Make(4, 4)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
133 {SkRect::MakeXYWH(5, 5, 5, 5), SkIPoint::Make(2, 2), SkIPoint::Make(7, 7)}, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
147 for (auto clip : {SkRect::MakeXYWH(0, 0, 10, 10), SkRect::MakeXYWH(1, 1, 8, 8)}) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
178 canvas->drawRect(SkRect::MakeXYWH(0, 0, kWidth, kHeight), black_paint); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DOnFlushCallbackTest.cpp356 SkIRect r = SkIRect::MakeXYWH(blocksInAtlas*kAtlasTileSize, 0, in preFlush()
441 SkRect r = SkRect::MakeXYWH(i*kDrawnTileSize, 0, kDrawnTileSize, kDrawnTileSize); in make_upstream_image()
470 bm.erase(SK_ColorRED, SkIRect::MakeXYWH(0, 0, 2, 2));
471 bm.erase(SK_ColorGREEN, SkIRect::MakeXYWH(2, 0, 2, 2));
472 bm.erase(SK_ColorBLUE, SkIRect::MakeXYWH(4, 0, 2, 2));
473 bm.erase(SK_ColorCYAN, SkIRect::MakeXYWH(6, 0, 2, 2));
474 bm.erase(SK_ColorMAGENTA, SkIRect::MakeXYWH(8, 0, 2, 2));
475 bm.erase(SK_ColorYELLOW, SkIRect::MakeXYWH(10, 0, 2, 2));
476 bm.erase(SK_ColorBLACK, SkIRect::MakeXYWH(12, 0, 2, 2));
477 bm.erase(SK_ColorGRAY, SkIRect::MakeXYWH(14, 0, 2, 2));
[all …]
DPDFOpaqueSrcModeToSrcOverTest.cpp21 c->drawRect(SkRect::MakeXYWH(36.0f, 36.0f, 9.0f, 9.0f), black); in run_test()
22 c->drawRect(SkRect::MakeXYWH(72.0f, 72.0f, 468.0f, 648.0f), background); in run_test()
23 c->drawRect(SkRect::MakeXYWH(108.0f, 108.0f, 9.0f, 9.0f), black); in run_test()
/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/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.cpp22 fShapes.push_back().setOval(SkRect::MakeXYWH(-5, 25, 200, 100)); in ShapesGM()
25 fShapes.push_back().setRect(SkRect::MakeXYWH(95, 75, 125, 100)); in ShapesGM()
28 fShapes.push_back().setRectXY(SkRect::MakeXYWH(0, 75, 150, 100), 1e-5f, 1e-5f); in ShapesGM()
31 fShapes.push_back().setRectXY(SkRect::MakeXYWH(15, -20, 100, 100), 20, 15); in ShapesGM()
36 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(140, -50, 90, 110), 10, 5, 25, 35); in ShapesGM()
39 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(160, -60, 60, 90), 10, 60, 50, 30); in ShapesGM()
42 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(220, -120, 60, 90), 1, 89, 59, 1); in ShapesGM()
46 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii); in ShapesGM()
50 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(180, -30, 80, 60), radii2); in ShapesGM()
Dbitmaptiled.cpp53 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH(0.0f, (kTileSize - 50) + offset, in draw_tile_bitmap_with_fractional_offset()
55 SkRect::MakeXYWH(37.0f * i, 0.0f, 32.0f, 1124.0f), nullptr); in draw_tile_bitmap_with_fractional_offset()
57 canvas->drawBitmapRect(bmp, SkRect::MakeXYWH((kTileSize - 50) + offset, 0.0f, in draw_tile_bitmap_with_fractional_offset()
59 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()
Dimagealphathreshold.cpp20 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
22 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
24 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
26 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
31 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
32 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint()
Dmatriximagefilter.cpp33 canvas.drawRect(SkRect::MakeXYWH(0, 0, 16, 16), darkPaint); in make_checkerboard()
34 canvas.drawRect(SkRect::MakeXYWH(16, 0, 16, 16), lightPaint); in make_checkerboard()
35 canvas.drawRect(SkRect::MakeXYWH(0, 16, 16, 16), lightPaint); in make_checkerboard()
36 canvas.drawRect(SkRect::MakeXYWH(16, 16, 16, 16), darkPaint); in make_checkerboard()
Dtileimagefilter.cpp60 SkRect srcRect = SkRect::MakeXYWH(SkIntToScalar(image->width()/4), in onDraw()
64 SkRect dstRect = SkRect::MakeXYWH(SkIntToScalar(i * 8), in onDraw()
113 srcRect = SkRect::MakeXYWH(0, 0, 50, 50); in onDraw()
114 dstRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw()
115 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(5, 5, 40, 40)); in onDraw()
Dshapes_as_paths.cpp84 canvas->drawBitmapRect(bmpA, SkRect::MakeXYWH(maxDiffX - 5, maxDiffY - 5, 10, 10), in draw_diff()
85 SkRect::MakeXYWH(w, 0, w, h), nullptr); in draw_diff()
86 canvas->drawBitmapRect(bmpB, SkRect::MakeXYWH(maxDiffX - 5, maxDiffY - 5, 10, 10), in draw_diff()
87 SkRect::MakeXYWH(2 * w, 0, w, h), nullptr); in draw_diff()
120 SkRect::MakeXYWH(10, 10, 30, 30), // Normal in draw_rect_geom_diff_grid()
121 SkRect::MakeXYWH(10, 25, 30, 0), // Collapsed in draw_rect_geom_diff_grid()
122 SkRect::MakeXYWH(10, 40, 30, -30), // Inverted in draw_rect_geom_diff_grid()
Dimagefilterscropped.cpp93 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
94 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
95 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
96 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
120 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), in onDraw()
122 SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)), in onDraw()
Dwindowrectangles.cpp43 stack.clipRect(SkRect::MakeXYWH(370.75, 80.25, 149, 100), SkMatrix::I(), in onDraw()
45 stack.clipRect(SkRect::MakeXYWH(80.25, 420.75, 150, 100), SkMatrix::I(), in onDraw()
47 stack.clipRRect(SkRRect::MakeRectXY(SkRect::MakeXYWH(200, 200, 200, 200), 60, 45), in onDraw()
51 nine.setNinePatch(SkRect::MakeXYWH(550 - 30.25 - 100, 370.75, 100, 150), 12, 35, 23, 20); in onDraw()
56 complx.setRectRadii(SkRect::MakeXYWH(80.25, 80.75, 100, 149), complxRadii); in onDraw()
230 SkRect::Make(SkIRect::MakeXYWH(x, y, maskRTC->width(), maskRTC->height()))); in visualizeAlphaMask()
267 SkIRect checker = SkIRect::MakeXYWH(x, y, kMaskCheckerSize, kMaskCheckerSize); in stencilCheckerboard()
Dimagefilterscropexpand.cpp42 SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)),
148 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
149 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
150 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
151 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
/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),
DMergeBench.cpp43 canvas->drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
44 canvas->drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
45 canvas->drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
46 canvas->drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
DDisplacementBench.cpp60 canvas->drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in makeCheckerboard()
61 canvas->drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in makeCheckerboard()
62 canvas->drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in makeCheckerboard()
63 canvas->drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in makeCheckerboard()
73 canvas->clipRect(SkRect::MakeXYWH(SkIntToScalar(x), SkIntToScalar(y), in drawClippedBitmap()
DBlurImageFilterBench.cpp50 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
51 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
52 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
53 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
95 const SkRect bmpRect = SkRect::MakeXYWH(kX, kY, in onDraw()
/external/skia/samplecode/
DSampleAndroidShadows.cpp59 fRectPath.addRect(SkRect::MakeXYWH(-100, -50, 200, 100)); in onOnceBeforeDraw()
60 fRRPath.addRRect(SkRRect::MakeRectXY(SkRect::MakeXYWH(-100, -50, 200, 100), 4, 4)); in onOnceBeforeDraw()
61 fFunkyRRPath.addRoundRect(SkRect::MakeXYWH(-50, -50, SK_Scalar1 * 100, SK_Scalar1 * 100), in onOnceBeforeDraw()
67 fSquareRRectPath.addRRect(SkRRect::MakeRectXY(SkRect::MakeXYWH(-50, -50, 100, 100), in onOnceBeforeDraw()
69 fWideRectPath.addRect(SkRect::MakeXYWH(0, 0, 630, 70)); in onOnceBeforeDraw()
70 fWideOvalPath.addOval(SkRect::MakeXYWH(0, 0, 630, 70)); in onOnceBeforeDraw()

12345678910>>...12