Home
last modified time | relevance | path

Searched refs:nextUScalar1 (Results 1 – 25 of 45) sorted by relevance

12

/external/skia/samplecode/
DSampleHairCurves.cpp43 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
44 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
45 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
46 rand.nextUScalar1(), rand.nextUScalar1() in onDrawContent()
65 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
66 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
67 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
83 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
84 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
85 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
[all …]
DSampleClip.cpp46 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill()
51 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill()
60 return min + rand.nextUScalar1() * (max - min); in randRange()
75 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke()
80 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke()
DSamplePoints.cpp40 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
DSampleText.cpp103 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
DSamplePath.cpp229 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in ArcToView()
230 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in ArcToView()
354 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in FatStroke()
355 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in FatStroke()
DSampleHairline.cpp31 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), in generate_pts()
32 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h)); in generate_pts()
DSampleManyRects.cpp50 rotate.setRotate(fRandom.nextUScalar1() * 360, in onDrawContent()
DSampleVertices.cpp146 v[j].set(rand.nextUScalar1() * 250, rand.nextUScalar1() * 250); in make_tris()
/external/skia/bench/
DFSRectBench.cpp31 fRects[i].fLeft = -kMinOffset - rand.nextUScalar1() * kOffsetRange; in onDelayedSetup()
32 fRects[i].fTop = -kMinOffset - rand.nextUScalar1() * kOffsetRange; in onDelayedSetup()
33 fRects[i].fRight = W + kMinOffset + rand.nextUScalar1() * kOffsetRange; in onDelayedSetup()
34 fRects[i].fBottom = H + kMinOffset + rand.nextUScalar1() * kOffsetRange; in onDelayedSetup()
DShaderMaskBench.cpp72 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
73 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
79 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
80 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
DPathBench.cpp275 path->quadTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480, in makePath()
276 rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath()
294 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath()
296 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath()
686 SkScalar radius = rand.nextUScalar1() * 3; in onDraw()
687 r.fLeft = rand.nextUScalar1() * 300; in onDraw()
688 r.fTop = rand.nextUScalar1() * 300; in onDraw()
693 paint.setStrokeWidth(rand.nextUScalar1() * 5.0f); in onDraw()
787 SkScalar size = rand.nextUScalar1() * 30; in onDraw()
791 r.fLeft = rand.nextUScalar1() * 300; in onDraw()
[all …]
DLineBench.cpp36 fPts[i].set(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in LineBench()
DMatrixConvolutionBench.cpp53 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
54 rand.nextUScalar1() * 400); in onDraw()
DMorphologyBench.cpp61 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
62 rand.nextUScalar1() * 400); in onDraw()
DBlurBench.cpp63 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
64 rand.nextUScalar1() * 400); in onDraw()
DXfermodeBench.cpp49 random.nextUScalar1() * (size.fWidth - w), in onDraw()
50 random.nextUScalar1() * (size.fHeight - h), in onDraw()
DTextBench.cpp141 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
142 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
DGeometryBench.cpp142 fPts[i].set(rand.nextUScalar1(), rand.nextUScalar1()); in QuadBenchBase()
/external/skia/tests/
DSkColor4fTest.cpp51 rand.nextUScalar1(), rand.nextUScalar1(), rand.nextUScalar1(), 1 in DEF_TEST()
61 c4.fA = rand.nextUScalar1(); in DEF_TEST()
/external/skia/gm/
Dstrokerects.cpp37 SkScalar x = rand.nextUScalar1() * W; in rnd_rect()
38 SkScalar y = rand.nextUScalar1() * H; in rnd_rect()
39 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect()
40 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect()
Dpoints.cpp31 SkScalar y = rand->nextUScalar1() * 480; in fill_pts()
32 SkScalar x = rand->nextUScalar1() * 640; in fill_pts()
Dstrokes.cpp23 SkScalar x = rand.nextUScalar1() * W; in rnd_rect()
24 SkScalar y = rand.nextUScalar1() * H; in rnd_rect()
25 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect()
26 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect()
279 SkScalar x = rand.nextUScalar1() * (W >> 1); in onOnceBeforeDraw()
280 SkScalar y = rand.nextUScalar1() * (H >> 1); in onOnceBeforeDraw()
/external/skia/src/effects/gradients/
DSkTwoPointConicalGradient_gpu.cpp185 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
186 SkScalar radius1 = d->fRandom->nextUScalar1(); in TestCreate()
190 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate()
467 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
472 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate()
671 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
676 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate()
679 SkScalar increase = d->fRandom->nextUScalar1(); in TestCreate()
919 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
920 SkScalar radius1 = d->fRandom->nextUScalar1() + 0.0001f; // make sure radius1 != 0 in TestCreate()
[all …]
/external/skia/include/utils/
DSkRandom.h104 SkScalar nextUScalar1() { return SkFixedToScalar(this->nextUFixed1()); } in nextUScalar1() function
110 return this->nextUScalar1() * (max - min) + min; in nextRangeScalar()
126 return this->nextUScalar1() <= fractionTrue; in nextBiasedBool()
/external/skia/src/effects/
DGrAlphaThresholdFragmentProcessor.cpp155 float innerThresh = d->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate()
156 float outerThresh = d->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate()

12