Home
last modified time | relevance | path

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

12

/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()
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.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()
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()
DM44Test.cpp225 SkRect src = SkRect::MakeXYWH(rand.nextRangeF(-10.f, 10.f), in DEF_TEST()
226 rand.nextRangeF(-10.f, 10.f), in DEF_TEST()
227 rand.nextRangeF(1.f, 10.f), in DEF_TEST()
228 rand.nextRangeF(1.f, 10.f)); in DEF_TEST()
229 SkRect dst = SkRect::MakeXYWH(rand.nextRangeF(-10.f, 10.f), in DEF_TEST()
230 rand.nextRangeF(-10.f, 10.f), in DEF_TEST()
DWangsFormulaTest.cpp513 pts, w, SkMatrix::Scale(rand.nextRangeF(-10, 10), rand.nextRangeF(-10, 10))); in DEF_TEST()
517 m.setScaleX(rand.nextRangeF(-10, 10)); in DEF_TEST()
518 m.setSkewX(rand.nextRangeF(-10, 10)); in DEF_TEST()
519 m.setSkewY(rand.nextRangeF(-10, 10)); in DEF_TEST()
520 m.setScaleY(rand.nextRangeF(-10, 10)); in DEF_TEST()
DRoundRectTest.cpp1063 float maxRadiusX = rng.nextRangeF(0.f, 40.f); in test_inner_bounds()
1064 float maxRadiusY = rng.nextRangeF(0.f, 40.f); in test_inner_bounds()
1066 float innerWidth = rng.nextRangeF(0.f, 40.f); in test_inner_bounds()
1067 float innerHeight = rng.nextRangeF(0.f, 40.f); in test_inner_bounds()
1069 SkVector radii[4] = {{rng.nextRangeF(0.f, maxRadiusX), rng.nextRangeF(0.f, maxRadiusY)}, in test_inner_bounds()
1070 {rng.nextRangeF(0.f, maxRadiusX), rng.nextRangeF(0.f, maxRadiusY)}, in test_inner_bounds()
1071 {rng.nextRangeF(0.f, maxRadiusX), rng.nextRangeF(0.f, maxRadiusY)}, in test_inner_bounds()
1072 {rng.nextRangeF(0.f, maxRadiusX), rng.nextRangeF(0.f, maxRadiusY)}}; in test_inner_bounds()
DMatrixTest.cpp575 SkScalar rot0 = rand.nextRangeF(-180, 180); in test_matrix_decomposition()
576 SkScalar sx = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_decomposition()
577 SkScalar sy = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_decomposition()
578 SkScalar rot1 = rand.nextRangeF(-180, 180); in test_matrix_decomposition()
669 randTriples[i].fX = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_homogeneous()
670 randTriples[i].fY = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_homogeneous()
671 randTriples[i].fZ = rand.nextRangeF(-3000.f, 3000.f); in test_matrix_homogeneous()
677 mats[i].set(j, rand.nextRangeF(-3000.f, 3000.f)); in test_matrix_homogeneous()
/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()
DMatrixBench.cpp150 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f; in onDelayedSetup()
151 SkScalar sx = fRandom.nextRangeF(-3000.f, 3000.f); in onDelayedSetup()
152 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onDelayedSetup()
153 SkScalar rot1 = fRandom.nextRangeF(-180, 180); in onDelayedSetup()
DSKPAnimationBench.cpp33 fAnimation->preConcatFrameMatrix(fAnimationTime.nextRangeF(0, 1000), fDevBounds, &trans); in drawPicture()
/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/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()
Dovals.cpp139 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in genColor()
140 hsv[1] = rand->nextRangeF(0.75f, 1.0f); in genColor()
141 hsv[2] = rand->nextRangeF(0.75f, 1.0f); in genColor()
Droundrects.cpp31 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in gen_color()
32 hsv[1] = rand->nextRangeF(0.75f, 1.0f); in gen_color()
33 hsv[2] = rand->nextRangeF(0.75f, 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/skia/samplecode/
DSampleAnimatedText.cpp103 fRotation += (1.0f + gRand.nextRangeF(-0.1f, 0.1f)); in onAnimate()
104 fScale += (fScaleInc + gRand.nextRangeF(-0.025f, 0.025f)); in onAnimate()
/third_party/skia/tools/
Drandom_parse_path.cpp78 SkScalar coord = rand->nextRangeF(0, 100); in MakeRandomParsePathPiece()
87 atom.appendScalar(rand->nextRangeF(-720, 720)); in MakeRandomParsePathPiece()
/third_party/skia/src/gpu/effects/
DGrRRectEffect.cpp126 SkScalar r = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
461 r[SkRRect::kUpperLeft_Corner].fX = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
464 r[SkRRect::kUpperLeft_Corner].fY = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
470 r[SkRRect::kLowerRight_Corner].fX = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
471 r[SkRRect::kLowerRight_Corner].fY = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()

12