/third_party/skia/bench/ |
H A D | Matrix44Bench.cpp | 23 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 D | BulkRectBench.cpp | 188 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 D | PathTextBench.cpp | 64 float t0 = pow(rand.nextF(), 100); 68 float t1 = rand.nextF(), t2 = rand.nextF(); 73 fXforms[i].preRotate(rand.nextF() * 360);
|
H A D | PathBench.cpp | 1120 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 D | VertBench.cpp | 211 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 D | TessellateBench.cpp | 50 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 D | ShapesBench.cpp | 155 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 D | SampleFlutterAnimate.cpp | 71 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 D | SamplePathText.cpp | 135 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 D | SkPathRangeIterTest.cpp | 12 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 D | WangsFormulaTest.cpp | 89 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 D | SamplingTest.cpp | 49 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 D | GeometryTest.cpp | 65 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 D | RandomTest.cpp | 77 float f = rand.nextF(); in test_random_float() 85 float f = rand.nextF(); in test_random_float()
|
H A D | ProgramsTest.cpp | 172 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 D | PathBuilderTest.cpp | 243 float x = rand.nextF(); in DEF_TEST() 244 float y = rand.nextF(); in DEF_TEST()
|
/third_party/skia/gm/ |
H A D | manypaths.cpp | 57 SkScalar x = rand.nextF() * kWidth - 100; 58 SkScalar y = rand.nextF() * kHeight - 100; 59 SkScalar w = rand.nextF() * 200;
|
H A D | stringart.cpp | 133 SkScalar x = rand.nextF() * kWidth; in init() 134 SkScalar y = rand.nextF() * kHeight; in init()
|
H A D | points.cpp | 88 p.fX = rand.nextF() * 220 + 18; in DEF_SIMPLE_GM() 89 p.fY = rand.nextF() * 220 + 18; in DEF_SIMPLE_GM()
|
H A D | drawminibitmaprect.cpp | 117 canvas->rotate(random.nextF() * 10.f); 120 canvas->rotate(-random.nextF() * 10.f);
|
H A D | textblobmixedsizes.cpp | 152 canvas->rotate(random.nextF() * 45.f); 155 canvas->rotate(-random.nextF() * 45.f);
|
H A D | shapes.cpp | 145 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 D | perspshaders.cpp | 188 auto x = rand.nextF(); in make_path() 189 auto y = rand.nextF(); in make_path()
|
/third_party/skia/include/utils/ |
H A D | SkRandom.h | 51 float nextF() { in nextF() function in SkRandom 61 return min + this->nextF() * (max - min); in nextRangeF()
|
/third_party/skia/src/gpu/ops/ |
H A D | DashOp.cpp | 1264 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;
|