Home
last modified time | relevance | path

Searched refs:nextRangeF (Results 1 – 25 of 69) sorted by relevance

123

/third_party/skia/tests/
DStrokerTest.cpp239 quad[0].fX = r.nextRangeF(0, 500); in DEF_TEST()
240 quad[0].fY = r.nextRangeF(0, 500); in DEF_TEST()
243 quad[1].fX = r.nextRangeF(0, 500); in DEF_TEST()
244 quad[1].fY = r.nextRangeF(0, 500); in DEF_TEST()
247 quad[2].fX = r.nextRangeF(0, 500); in DEF_TEST()
248 quad[2].fY = r.nextRangeF(0, 500); in DEF_TEST()
253 p.setStrokeWidth(r.nextRangeF(0, 500)); in DEF_TEST()
291 cubic[0].fX = r.nextRangeF(0, 500); in DEF_TEST()
292 cubic[0].fY = r.nextRangeF(0, 500); in DEF_TEST()
295 cubic[1].fX = r.nextRangeF(0, 500); in DEF_TEST()
[all …]
DPathOpsTightBoundsTest.cpp20 path.moveTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
22 path.lineTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
65 path.moveTo(ran.nextRangeF(1, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
68 path.lineTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
70 path.quadTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax), in testTightBoundsQuads()
71 ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
DPathOpsCubicLineIntersectionIdeas.cpp147 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
149 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
150 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
151 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)} in DEF_TEST()
154 double t = ran.nextRangeF(0, 1); in DEF_TEST()
DGrVxTest.cpp33 float a=rand.nextRangeF(-1,1), b=rand.nextRangeF(-1,1), c=rand.nextRangeF(-1,1), in DEF_TEST()
34 d=rand.nextRangeF(-1,1); in DEF_TEST()
DPathOpsAngleIdeas.cpp580 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
581 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
582 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
586 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
587 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
613 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
614 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
615 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
619 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
620 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
DRTreeTest.cpp19 rect.fLeft = rand.nextRangeF(0, 1000); in random_rect()
20 rect.fRight = rand.nextRangeF(0, 1000); in random_rect()
21 rect.fTop = rand.nextRangeF(0, 1000); in random_rect()
22 rect.fBottom = rand.nextRangeF(0, 1000); in random_rect()
DPathOpsAngleTest.cpp39 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
41 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
74 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
75 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
77 float t2 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
79 float t3 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
/third_party/flutter/skia/tests/
DStrokerTest.cpp237 quad[0].fX = r.nextRangeF(0, 500); in DEF_TEST()
238 quad[0].fY = r.nextRangeF(0, 500); in DEF_TEST()
241 quad[1].fX = r.nextRangeF(0, 500); in DEF_TEST()
242 quad[1].fY = r.nextRangeF(0, 500); in DEF_TEST()
245 quad[2].fX = r.nextRangeF(0, 500); in DEF_TEST()
246 quad[2].fY = r.nextRangeF(0, 500); in DEF_TEST()
251 p.setStrokeWidth(r.nextRangeF(0, 500)); in DEF_TEST()
289 cubic[0].fX = r.nextRangeF(0, 500); in DEF_TEST()
290 cubic[0].fY = r.nextRangeF(0, 500); in DEF_TEST()
293 cubic[1].fX = r.nextRangeF(0, 500); in DEF_TEST()
[all …]
DPathOpsTightBoundsTest.cpp21 path.moveTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
23 path.lineTo(ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)); in testTightBoundsLines()
66 path.moveTo(ran.nextRangeF(1, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
69 path.lineTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
71 path.quadTo(ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax), in testTightBoundsQuads()
72 ran.nextRangeF(pathMin, pathMax), ran.nextRangeF(pathMin, pathMax)); in testTightBoundsQuads()
DPathOpsCubicLineIntersectionIdeas.cpp147 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
149 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
150 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
151 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)} in DEF_TEST()
154 double t = ran.nextRangeF(0, 1); in DEF_TEST()
DRTreeTest.cpp19 rect.fLeft = rand.nextRangeF(0, 1000); in random_rect()
20 rect.fRight = rand.nextRangeF(0, 1000); in random_rect()
21 rect.fTop = rand.nextRangeF(0, 1000); in random_rect()
22 rect.fBottom = rand.nextRangeF(0, 1000); in random_rect()
DPathOpsAngleIdeas.cpp583 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
584 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
585 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
589 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
590 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
616 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}; in DEF_TEST()
617 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
618 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
622 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}, in DEF_TEST()
623 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}}; in DEF_TEST()
DPathOpsAngleTest.cpp40 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
42 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
75 SkDLine line = {{{0, 0}, {ran.nextRangeF(0.0001f, 1000), ran.nextRangeF(0.0001f, 1000)}}}; in DEF_TEST()
76 float t = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
78 float t2 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
80 float t3 = ran.nextRangeF(0.0001f, 1); in DEF_TEST()
/third_party/flutter/skia/bench/
DRTreeBench.cpp84 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
85 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
86 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
87 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
102 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
103 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
110 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
111 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
117 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
118 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
[all …]
/third_party/skia/bench/
DRTreeBench.cpp85 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
86 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in onDraw()
87 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
88 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2); in onDraw()
103 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
104 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_XYordered_rects()
111 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
112 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3); in make_YXordered_rects()
118 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
119 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS); in make_random_rects()
[all …]
DTessellateBench.cpp284 path.lineTo(rand.nextRangeF(0, 150), rand.nextRangeF(0, 150)); in make_motionmark_paths()
292 path.quadTo(x + rand.nextRangeF(0, 150), y, x - rand.nextRangeF(0, 150), y); in make_motionmark_paths()
294 path.quadTo(rand.nextRangeF(0, 150), rand.nextRangeF(0, 150), in make_motionmark_paths()
295 rand.nextRangeF(0, 150), rand.nextRangeF(0, 150)); in make_motionmark_paths()
303 path.cubicTo(rand.nextRangeF(0, 150), y, rand.nextRangeF(0, 150), y, in make_motionmark_paths()
304 rand.nextRangeF(0, 150), y); in make_motionmark_paths()
306 path.cubicTo(rand.nextRangeF(0, 150), rand.nextRangeF(0, 150), in make_motionmark_paths()
307 rand.nextRangeF(0, 150), rand.nextRangeF(0, 150), in make_motionmark_paths()
308 rand.nextRangeF(0, 150), rand.nextRangeF(0, 150)); in make_motionmark_paths()
316 float strokeWidth = 21 - log2f(rand.nextRangeF(0, 1 << 20)); in make_motionmark_paths()
DGrQuadBench.cpp35 fQuads[i].xs()[j] = r.nextRangeF(-100.f, 100.f); in onDelayedSetup()
36 fQuads[i].ys()[j] = r.nextRangeF(-100.f, 100.f); in onDelayedSetup()
40 fQuads[i].ws()[j] = r.nextRangeF(-1.f, 10.f); in onDelayedSetup()
/third_party/skia/tests/graphite/
DIntersectionTreeTest.cpp38 Rect rect = Rect::XYWH(rand.nextRangeF(0, 500), in DEF_GRAPHITE_TEST()
39 rand.nextRangeF(0, 500), in DEF_GRAPHITE_TEST()
40 rand.nextRangeF(0, 70), in DEF_GRAPHITE_TEST()
41 rand.nextRangeF(0, 70)); in DEF_GRAPHITE_TEST()
52 Rect rect = Rect::XYWH(rand.nextRangeF(0, 500), in DEF_GRAPHITE_TEST()
53 rand.nextRangeF(0, 500), in DEF_GRAPHITE_TEST()
54 rand.nextRangeF(0, 200), in DEF_GRAPHITE_TEST()
55 rand.nextRangeF(0, 200)); in DEF_GRAPHITE_TEST()
/third_party/flutter/skia/gm/
Dbeziereffects.cpp202 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
203 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
204 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw()
206 SkScalar weight = rand.nextRangeF(0.f, 2.f); in onDraw()
406 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
407 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)}, in onDraw()
408 {rand.nextRangeF(0.f, w), rand.nextRangeF(0.f, h)} in onDraw()
Danimatedimageblurs.cpp94 fSize = rand->nextRangeF(10.0f, 60.f); in init()
95 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init()
96 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init()
97 fDir.fX = rand->nextRangeF(-1.0f, 1.0f); in init()
102 fBlurOffset = rand->nextRangeF(0.0f, kBlurMax); in init()
104 fSpeed = rand->nextRangeF(20.0f, 60.0f); in init()
Dmanypaths.cpp24 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in gen_color()
25 hsv[1] = rand->nextRangeF(0.5f, 1.0f); in gen_color()
26 hsv[2] = rand->nextRangeF(0.5f, 1.0f); in gen_color()
/third_party/skia/gm/
Danimatedimageblurs.cpp95 fSize = rand->nextRangeF(10.0f, 60.f); in init()
96 fPos.fX = rand->nextRangeF(fSize, kWidth - fSize); in init()
97 fPos.fY = rand->nextRangeF(fSize, kHeight - fSize); in init()
98 fDir.fX = rand->nextRangeF(-1.0f, 1.0f); in init()
103 fBlurOffset = rand->nextRangeF(0.0f, kBlurMax); in init()
105 fSpeed = rand->nextRangeF(20.0f, 60.0f); in init()
Dmanypaths.cpp24 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in gen_color()
25 hsv[1] = rand->nextRangeF(0.5f, 1.0f); in gen_color()
26 hsv[2] = rand->nextRangeF(0.5f, 1.0f); in gen_color()
/third_party/skia/bench/graphite/
DIntersectionTreeBench.cpp90 rects->push_back(SkRect::MakeXYWH(rand.nextRangeF(0, 2000), in gatherRects()
91 rand.nextRangeF(0, 2000), in gatherRects()
92 rand.nextRangeF(0, 70), in gatherRects()
93 rand.nextRangeF(0, 70))); in gatherRects()
/third_party/flutter/skia/samplecode/
DSampleHT.cpp54 fR = SkRect::MakeXYWH(rand.nextRangeF(0, 640), rand.nextRangeF(0, 480), in HTDrawable()
55 rand.nextRangeF(20, 200), rand.nextRangeF(20, 200)); in HTDrawable()

123