Home
last modified time | relevance | path

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

12345678910>>...29

/third_party/flutter/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 …]
/third_party/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.cpp163 SkIRect leftSideCropRect = SkIRect::MakeXYWH(0, 0, 32, 64); in FilterList()
166 SkIRect rightSideCropRect = SkIRect::MakeXYWH(32, 0, 32, 64); in FilterList()
178 this->addFilter("tile", SkImageFilters::Tile(SkRect::MakeXYWH(0, 0, 50, 50), in FilterList()
180 : SkRect::MakeXYWH(0, 0, 100, 100), in FilterList()
206 recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 30, 20)), greenPaint); in FilterList()
291 SkRect::MakeXYWH(0, 0, kRectSize, kRectSize), darkPaint); in make_small_image()
293 SkRect::MakeXYWH(kRectSize, 0, kRectSize, kRectSize), lightPaint); in make_small_image()
295 SkRect::MakeXYWH(0, kRectSize, kRectSize, kRectSize), lightPaint); in make_small_image()
297 SkRect::MakeXYWH(kRectSize, kRectSize, kRectSize, kRectSize), darkPaint); in make_small_image()
481 SkIRect inputCropRect = SkIRect::MakeXYWH(8, 13, 80, 80); in test_cropRects()
[all …]
/third_party/skia/gm/
Dblend.cpp23 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
25 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
28 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
31 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
35 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
38 canvas->drawRect(SkRect::MakeXYWH(2, 0, 1, 1), p);
Dshapes.cpp43 fShapes.push_back().setOval(SkRect::MakeXYWH(-5, 25, 200, 100)); in onOnceBeforeDraw()
46 fShapes.push_back().setRect(SkRect::MakeXYWH(95, 75, 125, 100)); in onOnceBeforeDraw()
49 fShapes.push_back().setRectXY(SkRect::MakeXYWH(0, 75, 150, 100), 1e-5f, 1e-5f); in onOnceBeforeDraw()
52 fShapes.push_back().setRectXY(SkRect::MakeXYWH(15, -20, 100, 100), 20, 15); in onOnceBeforeDraw()
57 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(140, -50, 90, 110), 10, 5, 25, 35); in onOnceBeforeDraw()
60 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(160, -60, 60, 90), 10, 60, 50, 30); in onOnceBeforeDraw()
63 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(220, -120, 60, 90), 1, 89, 59, 1); in onOnceBeforeDraw()
67 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii); in onOnceBeforeDraw()
71 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(180, -30, 80, 60), radii2); in onOnceBeforeDraw()
Dlazytiling.cpp98 contentBM.eraseArea(SkIRect::MakeXYWH(halfM1, 2,2, halfM1), SK_ColorGRAY); in create_bitmap()
99 contentBM.eraseArea(SkIRect::MakeXYWH(2, halfM1, kContentSize-4, 2), SK_ColorGRAY); in create_bitmap()
101 contentBM.eraseArea(SkIRect::MakeXYWH(2, halfM1, 2, 2), SK_ColorRED); in create_bitmap()
102 contentBM.eraseArea(SkIRect::MakeXYWH(kContentSize-4, halfM1, 2, 2), SK_ColorGREEN); in create_bitmap()
105 contentBM.eraseArea(SkIRect::MakeXYWH(0, 0, kContentSize, 1), SK_ColorBLUE); in create_bitmap()
106 contentBM.eraseArea(SkIRect::MakeXYWH(0, 0, 1, kContentSize), SK_ColorBLUE); in create_bitmap()
107 contentBM.eraseArea(SkIRect::MakeXYWH(kContentSize-1, 0, 1, kContentSize), SK_ColorBLUE); in create_bitmap()
108 contentBM.eraseArea(SkIRect::MakeXYWH(0, kContentSize-1, kContentSize, 1), SK_ColorBLUE); in create_bitmap()
175 , fContentRect(SkIRect::MakeXYWH(kLeftContentOffset, kTopContentOffset, in LazyTilingGM()
225 SkIRect cellRect = SkIRect::MakeXYWH(x, y, 2*kContentSize, 2*kContentSize); in onDraw()
[all …]
Dimagealphathreshold.cpp36 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
38 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
40 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
42 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
47 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
48 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint()
196 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
197 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
Dcrbug_1156804.cpp27 drawOne(canvas, SkRect::MakeXYWH( 64, 64, 25, 25), 1, 3, SK_ColorGREEN);
28 drawOne(canvas, SkRect::MakeXYWH(164, 64, 25, 25), 30, 3, SK_ColorGREEN);
32 drawOne(canvas, SkRect::MakeXYWH( 64, 164, 25, 25), 1, 20, SK_ColorRED);
33 drawOne(canvas, SkRect::MakeXYWH(164, 164, 25, 25), 30, 20, SK_ColorGREEN);
Dbitmaptiled.cpp52 SkRect::MakeXYWH(0, (kTileSize - 50) + offset, 32, 1124.0f), in draw_tile_bitmap_with_fractional_offset()
53 SkRect::MakeXYWH(37.0f * i, 0.0f, 32.0f, 1124.0f), in draw_tile_bitmap_with_fractional_offset()
58 SkRect::MakeXYWH((kTileSize - 50) + offset, 0, 1124, 32), in draw_tile_bitmap_with_fractional_offset()
59 SkRect::MakeXYWH(0.0f, 37.0f * i, 1124.0f, 32.0f), in draw_tile_bitmap_with_fractional_offset()
Dclip_strokerect.cpp38 SkRect r = SkRect::MakeXYWH(20, 20, 100, 100); in onDraw()
40 SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20); in onDraw()
56 SkRect r2 = SkRect::MakeXYWH(20, 140, 100, 100); in onDraw()
58 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw()
Dcrbug_1174354.cpp53 draw_bg_blur(canvas, SkIRect::MakeXYWH(10, 10, 50, 50), 5);
54 draw_bg_blur(canvas, SkIRect::MakeXYWH(10, 70, 50, 50), 15);
55 draw_bg_blur(canvas, SkIRect::MakeXYWH(10, 130, 50, 50), 30);
56 draw_bg_blur(canvas, SkIRect::MakeXYWH(10, 190, 50, 50), 70);
Dwindowrectangles.cpp86 stack.clipRect(SkRect::MakeXYWH(370.75, 80.25, 149, 100), SkMatrix::I(), in onDraw()
88 stack.clipRect(SkRect::MakeXYWH(80.25, 420.75, 150, 100), SkMatrix::I(), in onDraw()
90 stack.clipRRect(SkRRect::MakeRectXY(SkRect::MakeXYWH(200, 200, 200, 200), 60, 45), in onDraw()
94 nine.setNinePatch(SkRect::MakeXYWH(550 - 30.25 - 100, 370.75, 100, 150), 12, 35, 23, 20); in onDraw()
99 complx.setRectRadii(SkRect::MakeXYWH(80.25, 80.75, 100, 149), complxRadii); in onDraw()
Dmatriximagefilter.cpp39 canvas.drawRect(SkRect::MakeXYWH(0, 0, 16, 16), darkPaint); in make_checkerboard()
40 canvas.drawRect(SkRect::MakeXYWH(16, 0, 16, 16), lightPaint); in make_checkerboard()
41 canvas.drawRect(SkRect::MakeXYWH(0, 16, 16, 16), lightPaint); in make_checkerboard()
42 canvas.drawRect(SkRect::MakeXYWH(16, 16, 16, 16), darkPaint); in make_checkerboard()
/third_party/flutter/skia/gm/
Dblend.cpp23 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
25 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
28 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
31 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
35 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
38 canvas->drawRect(SkRect::MakeXYWH(2, 0, 1, 1), p);
Dshapes.cpp43 fShapes.push_back().setOval(SkRect::MakeXYWH(-5, 25, 200, 100)); in onOnceBeforeDraw()
46 fShapes.push_back().setRect(SkRect::MakeXYWH(95, 75, 125, 100)); in onOnceBeforeDraw()
49 fShapes.push_back().setRectXY(SkRect::MakeXYWH(0, 75, 150, 100), 1e-5f, 1e-5f); in onOnceBeforeDraw()
52 fShapes.push_back().setRectXY(SkRect::MakeXYWH(15, -20, 100, 100), 20, 15); in onOnceBeforeDraw()
57 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(140, -50, 90, 110), 10, 5, 25, 35); in onOnceBeforeDraw()
60 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(160, -60, 60, 90), 10, 60, 50, 30); in onOnceBeforeDraw()
63 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(220, -120, 60, 90), 1, 89, 59, 1); in onOnceBeforeDraw()
67 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii); in onOnceBeforeDraw()
71 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(180, -30, 80, 60), radii2); in onOnceBeforeDraw()
Dimagealphathreshold.cpp36 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
38 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
40 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
42 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
47 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
48 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint()
196 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
197 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
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.cpp38 SkRect r = SkRect::MakeXYWH(20, 20, 100, 100); in onDraw()
40 SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20); in onDraw()
56 SkRect r2 = SkRect::MakeXYWH(20, 140, 100, 100); in onDraw()
58 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw()
Dmatriximagefilter.cpp39 canvas.drawRect(SkRect::MakeXYWH(0, 0, 16, 16), darkPaint); in make_checkerboard()
40 canvas.drawRect(SkRect::MakeXYWH(16, 0, 16, 16), lightPaint); in make_checkerboard()
41 canvas.drawRect(SkRect::MakeXYWH(0, 16, 16, 16), lightPaint); in make_checkerboard()
42 canvas.drawRect(SkRect::MakeXYWH(16, 16, 16, 16), darkPaint); in make_checkerboard()
/third_party/flutter/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),
/third_party/skia/samplecode/
DSampleTiming.cpp44 SkRect::MakeXYWH(x,y,1,1), SkRect::MakeXYWH(x,y,1,1), in onDrawContent()
62 canvas->drawRect(SkRect::MakeXYWH(x,y,1,1), p); in onDrawContent()
76 SkRect::MakeXYWH(x,y,1,1), in onDrawContent()
77 SkRect::MakeXYWH(0,0,1024,1024), in onDrawContent()
91 canvas->drawRect(SkRect::MakeXYWH(x,y,1,1), p); in onDrawContent()
/third_party/skia/bench/
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),
/third_party/flutter/skia/docs/examples/
DBitmap_erase.cpp10 bitmap.erase(0x7f7f3fff, SkIRect::MakeXYWH(0, 1, 1, 1)); in draw()
11 bitmap.erase(0x7f3fff7f, SkIRect::MakeXYWH(1, 0, 1, 1)); in draw()
12 bitmap.erase(0x7f1fbf5f, SkIRect::MakeXYWH(1, 1, 1, 1)); in draw()
/third_party/skia/docs/examples/
DBitmap_erase.cpp10 bitmap.erase(0x7f7f3fff, SkIRect::MakeXYWH(0, 1, 1, 1)); in draw()
11 bitmap.erase(0x7f3fff7f, SkIRect::MakeXYWH(1, 0, 1, 1)); in draw()
12 bitmap.erase(0x7f1fbf5f, SkIRect::MakeXYWH(1, 1, 1, 1)); in draw()

12345678910>>...29