Home
last modified time | relevance | path

Searched refs:nextF (Results 1 - 25 of 31) sorted by relevance

12

/third_party/skia/bench/
H A DMatrix44Bench.cpp23 v = rand.nextF(); in M4Bench()
165 fM = SkM44::Translate(rand.nextF(), rand.nextF()); in MapRectBench()
169 fM = SkM44::Scale(rand.nextF(), rand.nextF()); in MapRectBench()
170 fM.postTranslate(rand.nextF(), rand.nextF()); in MapRectBench()
190 fS = SkRect::MakeXYWH(10.f * rand.nextF(), 10.f * rand.nextF(), in MapRectBench()
191 150.f * rand.nextF(), 15 in MapRectBench()
[all...]
H A DBulkRectBench.cpp188 SkScalar w = rand.nextF() * (kMaxRectSize - kMinRectSize) + kMinRectSize;
189 SkScalar h = rand.nextF() * (kMaxRectSize - kMinRectSize) + kMinRectSize;
191 SkScalar x = rand.nextF() * (kWidth - w);
192 SkScalar y = rand.nextF() * (kHeight - h);
212 fColors[i] = {rand.nextF(), rand.nextF(), rand.nextF(), 1.f};
H A DPathTextBench.cpp64 float t0 = pow(rand.nextF(), 100);
68 float t1 = rand.nextF(), t2 = rand.nextF();
73 fXforms[i].preRotate(rand.nextF() * 360);
H A DPathBench.cpp1120 fPath.moveTo(rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1121 fPath.lineTo(rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1122 fPath.quadTo(rand.nextF()*100, rand.nextF()*100, rand.nextF()*100, rand.nextF()*100); in TightBoundsBench()
1123 fPath.conicTo(rand.nextF()*100, rand.nextF()*10 in TightBoundsBench()
[all...]
H A DVertBench.cpp211 fRects[i] = SkRect::MakeXYWH(rand.nextF() * (imageW - 8),
212 rand.nextF() * (imageH - 8), 8, 8);
214 fXforms[i] = SkRSXform::Make(scos, ssin, rand.nextF() * W, rand.nextF() * H);
H A DTessellateBench.cpp50 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_cubic_path()
62 const float x = std::ldexp(rand.nextF(), (i % 18)) / 1e3f; in make_conic_path()
63 const float w = std::ldexp(1 + rand.nextF(), j); in make_conic_path()
74 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_quad_path()
84 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_line_path()
H A DShapesBench.cpp155 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad),
156 0.5f * pad + rand.nextF() * (kBenchHeight - pad));
157 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f);
/third_party/skia/samplecode/
H A DSampleFlutterAnimate.cpp71 fChars[i].fPosition = SkPoint::Make(fRand.nextF()*748 + 10, fRand.nextF()*1004 + 10); in initChars()
72 fChars[i].fStartRotation = fRand.nextF(); in initChars()
73 fChars[i].fEndRotation = fRand.nextF() * 20 - 10; in initChars()
H A DSamplePathText.cpp135 fPosition = {rand.nextF() * w, rand.nextF() * h}; in reset()
136 t = pow(rand.nextF(), 100); in reset()
139 fSpin = rand.nextF() * 360; in reset()
162 SkScalar t = pow(rand->nextF(), 3);
166 SkScalar t = pow(rand->nextF(), 25);
367 const double offsetAngle = (rand.nextF() * 2 - 1) * kMaxOffsetAngle; in reset()
368 const double intensity = pow(2, rand.nextF() * 2 - 1); in reset()
376 fOffsets[i] = rand.nextF() * 2 * SK_ScalarPI; in reset()
/third_party/skia/tests/
H A DSkPathRangeIterTest.cpp12 SkPoint next_point(SkRandom& rand) { return {rand.nextF(), rand.nextF()}; } in next_point()
42 SkPoint p() { return {this->SkRandom::nextF(), this->SkRandom::nextF()}; } in DEF_TEST()
43 float w() { return this->SkRandom::nextF(); } in DEF_TEST()
H A DWangsFormulaTest.cpp89 m.setScaleX(std::ldexp(1 + rand->nextF(), i)); in for_random_matrices()
92 m.setScaleY(std::ldexp(1 + rand->nextF(), j)); in for_random_matrices()
95 m.setScaleX(std::ldexp(1 + rand->nextF(), i)); in for_random_matrices()
96 m.setSkewX(std::ldexp(1 + rand->nextF(), (j + i) / 2)); in for_random_matrices()
97 m.setSkewY(std::ldexp(1 + rand->nextF(), (j + i) / 2)); in for_random_matrices()
98 m.setScaleY(std::ldexp(1 + rand->nextF(), j)); in for_random_matrices()
111 pts[j].set(std::ldexp(1 + rand->nextF(), i), std::ldexp(1 + rand->nextF(), i)); in for_random_beziers()
451 const float w = std::ldexp(1 + rand.nextF(), i); in DEF_TEST()
484 const float w = std::ldexp(1 + rand.nextF(), in DEF_TEST()
[all...]
H A DSamplingTest.cpp49 float C = rand.nextF(); in DEF_TEST()
52 float B = rand.nextF() * 0.9f + 0.05f; // non-zero but still within (0,,,1] in DEF_TEST()
H A DGeometryTest.cpp65 SkPoint pts[4] = {{rand.nextF(), rand.nextF()}, {rand.nextF(), rand.nextF()}, in testChopCubic()
66 {rand.nextF(), rand.nextF()}, {rand.nextF(), rand.nextF()}}; in testChopCubic()
H A DRandomTest.cpp77 float f = rand.nextF(); in test_random_float()
85 float f = rand.nextF(); in test_random_float()
H A DProgramsTest.cpp172 bool terminate = (1 == maxLevels) || (d->fRandom->nextF() < terminateProbability); in create_random_proc_tree()
201 if (d->fRandom->nextF() < 0.5f) { in create_random_proc_tree()
217 if (d->fRandom->nextF() < procTreeProbability) { in set_random_color_coverage_stages()
H A DPathBuilderTest.cpp243 float x = rand.nextF(); in DEF_TEST()
244 float y = rand.nextF(); in DEF_TEST()
/third_party/skia/gm/
H A Dmanypaths.cpp57 SkScalar x = rand.nextF() * kWidth - 100;
58 SkScalar y = rand.nextF() * kHeight - 100;
59 SkScalar w = rand.nextF() * 200;
H A Dstringart.cpp133 SkScalar x = rand.nextF() * kWidth; in init()
134 SkScalar y = rand.nextF() * kHeight; in init()
H A Dpoints.cpp88 p.fX = rand.nextF() * 220 + 18; in DEF_SIMPLE_GM()
89 p.fY = rand.nextF() * 220 + 18; in DEF_SIMPLE_GM()
H A Ddrawminibitmaprect.cpp117 canvas->rotate(random.nextF() * 10.f);
120 canvas->rotate(-random.nextF() * 10.f);
H A Dtextblobmixedsizes.cpp152 canvas->rotate(random.nextF() * 45.f);
155 canvas->rotate(-random.nextF() * 45.f);
H A Dshapes.cpp145 float dx = (rand.nextF() - 0.5f) * (outer.rect().width() - s * inner.rect().width());
146 float dy = (rand.nextF() - 0.5f) * (outer.rect().height() - s * inner.rect().height());
H A Dperspshaders.cpp188 auto x = rand.nextF(); in make_path()
189 auto y = rand.nextF(); in make_path()
/third_party/skia/include/utils/
H A DSkRandom.h51 float nextF() { in nextF() function in SkRandom
61 return min + this->nextF() * (max - min); in nextRangeF()
/third_party/skia/src/gpu/ops/
H A DDashOp.cpp1264 pts[0].fY = random->nextF() * 10.f;
1266 pts[1].fY = random->nextF() * 10.f;
1269 pts[0].fX = random->nextF() * 10.f;
1271 pts[1].fX = random->nextF() * 10.f;

Completed in 16 milliseconds

12