Home
last modified time | relevance | path

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

1234567

/external/skia/tests/
DRegionTest.cpp25 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome()
26 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome()
27 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome()
28 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome()
29 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
30 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome()
31 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome()
33 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome()
34 Union(&r, SkIRect::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
35 Union(&r, SkIRect::MakeXYWH(0, 10, 13, 3)); in test_fromchrome()
[all …]
DTextBlobTest.cpp112 SkRect r1 = SkRect::MakeXYWH(10, 10, 20, 20); in TestBounds()
119 SkRect r1 = SkRect::MakeXYWH(10, 10, 20, 20); in TestBounds()
126 SkRect r1 = SkRect::MakeXYWH(10, 10, 20, 20); in TestBounds()
133 SkRect r1 = SkRect::MakeXYWH(10, 10, 20, 20); in TestBounds()
134 SkRect r2 = SkRect::MakeXYWH(15, 20, 50, 50); in TestBounds()
135 SkRect r3 = SkRect::MakeXYWH(0, 5, 10, 5); in TestBounds()
142 REPORTER_ASSERT(reporter, blob->bounds() == SkRect::MakeXYWH(0, 5, 65, 65)); in TestBounds()
Dskpdf_opaquesrcmodetosrcover.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()
DImageFilterTest.cpp105 canvas.drawRect(SkRect::MakeXYWH(0, 0, in make_small_bitmap()
108 canvas.drawRect(SkRect::MakeXYWH(SkIntToScalar(i), in make_small_bitmap()
112 canvas.drawRect(SkRect::MakeXYWH(0, in make_small_bitmap()
116 canvas.drawRect(SkRect::MakeXYWH(SkIntToScalar(i), in make_small_bitmap()
207 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(0, 0, 100, 100)); in DEF_TEST()
277 SkImageFilter::CropRect inputCropRect(SkRect::MakeXYWH(8, 13, 80, 80)); in test_crop_rects()
278 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 30, 60, 60)); in test_crop_rects()
438 recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 30, 20)), greenPaint); in DEF_TEST()
470 { "tile", SkTileImageFilter::Create(SkRect::MakeXYWH(0, 0, 50, 50), in DEF_TEST()
471 SkRect::MakeXYWH(0, 0, 100, 100), NULL) }, in DEF_TEST()
[all …]
/external/skia/gm/
Dblend.cpp18 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
20 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p);
23 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
26 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p);
30 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
33 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
Dimagealphathreshold.cpp35 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in onDraw()
36 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in onDraw()
55 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), in onDraw()
58 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), in onDraw()
61 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), in onDraw()
64 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), in onDraw()
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()
Dimagefilterscropped.cpp80 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); in draw_sprite()
117 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
118 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
119 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
120 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
144 …SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::C… in onDraw()
145 …SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)), SkImageFilt… in onDraw()
Dmatriximagefilter.cpp51 canvas.drawRect(SkRect::MakeXYWH(0, 0, 16, 16), darkPaint); in make_checkerboard()
52 canvas.drawRect(SkRect::MakeXYWH(16, 0, 16, 16), lightPaint); in make_checkerboard()
53 canvas.drawRect(SkRect::MakeXYWH(0, 16, 16, 16), lightPaint); in make_checkerboard()
54 canvas.drawRect(SkRect::MakeXYWH(16, 16, 16, 16), darkPaint); in make_checkerboard()
Dbleed.cpp108 SkRect src = SkRect::MakeXYWH(2, 2, in drawCase1()
111 SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase1()
125 SkRect src = SkRect::MakeXYWH(2, 2, in drawCase2()
128 SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase2()
142 SkRect src = SkRect::MakeXYWH(2, 2, in drawCase3()
145 SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase3()
159 SkRect src = SkRect::MakeXYWH(2, 2, in drawCase4()
162 SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); in drawCase4()
Dimagefilterscropexpand.cpp51 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
52 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
53 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
54 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
98 SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), in onDraw()
Dblurs.cpp118 SkRect outer = SkRect::MakeXYWH(10.125f, 10.125f, 100.125f, 100); in onDraw()
119 SkRect inner = SkRect::MakeXYWH(20.25f, 20.125f, 80, 80); in onDraw()
149 SkRect outer = SkRect::MakeXYWH(10, 110, 100, 100); in onDraw()
150 SkRect inner = SkRect::MakeXYWH(50, 150, 10, 10); in onDraw()
Dtexturedomaineffect.cpp53 canvas.drawOval(SkRect::MakeXYWH(-5.f, -5.f, in onOnceBeforeDraw()
60 canvas.drawOval(SkRect::MakeXYWH(-5.f, -5.f, in onOnceBeforeDraw()
67 canvas.drawOval(SkRect::MakeXYWH(-5.f, -5.f, in onOnceBeforeDraw()
103 SkIRect::MakeXYWH(fBmp.width() / 4, in onDraw()
Dbitmapsource.cpp55 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); in onDraw()
56 SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60); in onDraw()
57 SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw()
Dstrokefill.cpp80 SkRect r = SkRect::MakeXYWH(x - SkIntToScalar(50), y + SkIntToScalar(280), in onDraw()
89 r = SkRect::MakeXYWH(x + SkIntToScalar(70), y + SkIntToScalar(280), in onDraw()
98 r = SkRect::MakeXYWH(x + SkIntToScalar(190), y + SkIntToScalar(280), in onDraw()
107 r = SkRect::MakeXYWH(x + SkIntToScalar(310), y + SkIntToScalar(280), in onDraw()
Dlighting.cpp67 canvas->drawRect(SkRect::MakeXYWH(8, 0, 8, 8), checkPaint); in onDraw()
68 canvas->drawRect(SkRect::MakeXYWH(0, 8, 8, 8), checkPaint); in onDraw()
89 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 10, 60, 65)); in onDraw()
90 SkImageFilter::CropRect fullSizeCropRect(SkRect::MakeXYWH(0, 0, 100, 100)); in onDraw()
Ddcshader.cpp133 SkRect rect = SkRect::MakeXYWH(0, 0, 50, 50); in onOnceBeforeDraw()
143 return SkRect::MakeXYWH(0, 0, 2 * radius, 2 * radius); in onOnceBeforeDraw()
150 rrect.setRectXY(SkRect::MakeXYWH(0, 0, 50, 50), 10, 10); in onOnceBeforeDraw()
159 outerRRect.setRectXY(SkRect::MakeXYWH(0, 0, 50, 50), 5, 5); in onOnceBeforeDraw()
161 innerRRect.setRectXY(SkRect::MakeXYWH(5, 8, 35, 30), 8, 3); in onOnceBeforeDraw()
170 path.addOval(SkRect::MakeXYWH(2, 2, 22, 37)); in onOnceBeforeDraw()
Dpictureimagefilter.cpp57 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); in onDraw()
58 SkRect emptyRect = SkRect::MakeXYWH(20, 20, 0, 0); in onDraw()
59 SkRect bounds = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw()
Dxfermodes.cpp99 SkRect bounds = SkRect::MakeXYWH(x, y, SkIntToScalar(W), in draw_mode()
110 SkRect r = SkRect::MakeXYWH(x + halfW, y, halfW, in draw_mode()
114 r = SkRect::MakeXYWH(x, y + halfH, SkIntToScalar(W), halfH); in draw_mode()
123 SkRect r = SkRect::MakeXYWH(x, y + h / 4, w, h * 23 / 60); in draw_mode()
130 SkRect r = SkRect::MakeXYWH(x + w / 3, y + h / 3, in draw_mode()
Dconvexpaths.cpp76 fPaths.push_back().addOval(SkRect::MakeXYWH(0, 0, in makePaths()
81 fPaths.push_back().addOval(SkRect::MakeXYWH(0, 0, in makePaths()
86 fPaths.push_back().addOval(SkRect::MakeXYWH(0, 0, in makePaths()
91 fPaths.push_back().addRoundRect(SkRect::MakeXYWH(0, 0, in makePaths()
121 fPaths.push_back().arcTo(SkRect::MakeXYWH(0, 0, in makePaths()
/external/skia/bench/
DMagnifierBench.cpp42 SkRect::MakeXYWH(SkIntToScalar(w / 4), in onDraw()
67 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
68 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
69 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
70 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.cpp78 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
79 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
80 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
81 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
DBlurImageFilterBench.cpp69 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard()
70 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard()
71 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard()
72 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard()
DDisplacementBench.cpp61 canvas.drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in makeCheckerboard()
62 canvas.drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in makeCheckerboard()
63 canvas.drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in makeCheckerboard()
64 canvas.drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in makeCheckerboard()
72 canvas->clipRect(SkRect::MakeXYWH(SkIntToScalar(x), SkIntToScalar(y), in drawClippedBitmap()

1234567