Home
last modified time | relevance | path

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

12

/third_party/skia/tests/
H A 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( in DEF_TEST()
[all...]
H A 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(pathMi in testTightBoundsQuads()
[all...]
H A 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()
H A 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()
H A 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()
H A DPathOpsAngleIdeas.cpp580 SkDPoint origin = {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)};
581 QuadPts quad1 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)},
582 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)}}};
586 QuadPts quad2 = {{origin, {ran.nextRangeF(-1000, 1000), ran.nextRangeF(-1000, 1000)},
587 {ran.nextRangeF(-1000, 1000), ran.nextRangeF(
[all...]
H A 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()
H A 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()
H A 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()
H A 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( in test_inner_bounds()
[all...]
H A 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/
H A DRTreeBench.cpp85 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS);
86 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS);
87 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2);
88 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2);
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( in make_random_rects()
[all...]
H A 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( in make_motionmark_paths()
[all...]
H A DGrQuadBench.cpp35 fQuads[i].xs()[j] = r.nextRangeF(-100.f, 100.f);
36 fQuads[i].ys()[j] = r.nextRangeF(-100.f, 100.f);
40 fQuads[i].ws()[j] = r.nextRangeF(-1.f, 10.f);
H A DMatrixBench.cpp150 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f;
151 SkScalar sx = fRandom.nextRangeF(-3000.f, 3000.f);
152 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx;
153 SkScalar rot1 = fRandom.nextRangeF(-180, 180);
H A DSKPAnimationBench.cpp33 fAnimation->preConcatFrameMatrix(fAnimationTime.nextRangeF(0, 1000), fDevBounds, &trans); in drawPicture()
/third_party/skia/tests/graphite/
H A 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/
H A 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()
H A 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()
H A 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()
H A 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/
H A DIntersectionTreeBench.cpp90 rects->push_back(SkRect::MakeXYWH(rand.nextRangeF(0, 2000),
91 rand.nextRangeF(0, 2000),
92 rand.nextRangeF(0, 70),
93 rand.nextRangeF(0, 70)));
/third_party/skia/tools/
H A Drandom_parse_path.cpp78 SkScalar coord = rand->nextRangeF(0, 100); in MakeRandomParsePathPiece()
87 atom.appendScalar(rand->nextRangeF(-720, 720)); in MakeRandomParsePathPiece()
/third_party/skia/samplecode/
H A DSampleAnimatedText.cpp103 fRotation += (1.0f + gRand.nextRangeF(-0.1f, 0.1f));
104 fScale += (fScaleInc + gRand.nextRangeF(-0.025f, 0.025f));
/third_party/skia/src/gpu/effects/
H A DGrRRectEffect.cpp128 SkScalar r = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
471 r[SkRRect::kUpperLeft_Corner].fX = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
474 r[SkRRect::kUpperLeft_Corner].fY = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
480 r[SkRRect::kLowerRight_Corner].fX = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()
481 r[SkRRect::kLowerRight_Corner].fY = d->fRandom->nextRangeF(kRadiusMin, 9.f); in TestCreate()

Completed in 16 milliseconds

12