Home
last modified time | relevance | path

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

12

/external/skia/samplecode/
DSampleHairCurves.cpp44 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
45 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
46 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
47 rand.nextUScalar1(), rand.nextUScalar1() in onDrawContent()
66 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
67 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
68 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
84 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
85 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
86 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
[all …]
DSampleClip.cpp44 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill()
49 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill()
58 return min + SkScalarMul(rand.nextUScalar1(), max - min); in randRange()
73 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke()
78 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke()
DSamplePoints.cpp44 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
DSampleText.cpp143 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
DSampleHairline.cpp36 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), in generate_pts()
37 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h)); in generate_pts()
DSampleManyRects.cpp53 rotate.setRotate(fRandom.nextUScalar1() * 360, in onDrawContent()
/external/skia/gm/
Dhittestpath.cpp50 path.lineTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale); in onDraw()
51 path.quadTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale, in onDraw()
52 rand.nextUScalar1() * scale, rand.nextUScalar1() * scale); in onDraw()
53 path.cubicTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale, in onDraw()
54 rand.nextUScalar1() * scale, rand.nextUScalar1() * scale, in onDraw()
55 rand.nextUScalar1() * scale, rand.nextUScalar1() * scale); in onDraw()
Dstrokerects.cpp38 SkScalar x = rand.nextUScalar1() * W; in rnd_rect()
39 SkScalar y = rand.nextUScalar1() * H; in rnd_rect()
40 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect()
41 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect()
Dstrokes.cpp22 SkScalar x = rand.nextUScalar1() * W; in rnd_rect()
23 SkScalar y = rand.nextUScalar1() * H; in rnd_rect()
24 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect()
25 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect()
88 SkScalar x = rand.nextUScalar1() * (W >> 1); in onOnceBeforeDraw()
89 SkScalar y = rand.nextUScalar1() * (H >> 1); in onOnceBeforeDraw()
Dpoints.cpp32 SkScalar y = rand->nextUScalar1() * 480; in fill_pts()
33 SkScalar x = rand->nextUScalar1() * 640; in fill_pts()
Dimage.cpp217 SkScalar x = rand.nextUScalar1() * W; in drawIntoImage()
218 SkScalar y = rand.nextUScalar1() * H; in drawIntoImage()
219 SkScalar r = rand.nextUScalar1() * W / 2; in drawIntoImage()
/external/skia/bench/
DFSRectBench.cpp32 fRects[i].fLeft = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onPreDraw()
33 fRects[i].fTop = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onPreDraw()
34 fRects[i].fRight = W + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onPreDraw()
35 fRects[i].fBottom = H + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onPreDraw()
DPathBench.cpp185 path->quadTo(SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), in makePath()
186 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480)), in makePath()
187 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), in makePath()
188 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480))); in makePath()
206 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath()
208 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath()
598 SkScalar radius = rand.nextUScalar1() * 3; in onDraw()
599 r.fLeft = rand.nextUScalar1() * 300; in onDraw()
600 r.fTop = rand.nextUScalar1() * 300; in onDraw()
605 paint.setStrokeWidth(rand.nextUScalar1() * 5.0f); in onDraw()
[all …]
DShaderMaskBench.cpp73 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
74 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
80 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
81 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
DLineBench.cpp36 fPts[i].set(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in LineBench()
DMatrixConvolutionBench.cpp44 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
45 rand.nextUScalar1() * 400); in onDraw()
DMorphologyBench.cpp61 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
62 rand.nextUScalar1() * 400); in onDraw()
DBlurBench.cpp64 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
65 rand.nextUScalar1() * 400); in onDraw()
DXfermodeBench.cpp59 random.nextUScalar1() * (size.fWidth - w), in onDraw()
60 random.nextUScalar1() * (size.fHeight - h), in onDraw()
DTextBench.cpp138 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
139 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
DGeometryBench.cpp142 fPts[i].set(rand.nextUScalar1(), rand.nextUScalar1()); in QuadBenchBase()
/external/skia/src/effects/gradients/
DSkTwoPointConicalGradient_gpu.cpp191 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; in TestCreate()
192 SkScalar radius1 = random->nextUScalar1(); in TestCreate()
196 center2.set(random->nextUScalar1(), random->nextUScalar1()); in TestCreate()
480 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; in TestCreate()
485 center2.set(random->nextUScalar1(), random->nextUScalar1()); in TestCreate()
699 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; in TestCreate()
704 center2.set(random->nextUScalar1(), random->nextUScalar1()); in TestCreate()
707 SkScalar increase = random->nextUScalar1(); in TestCreate()
955 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; in TestCreate()
956 SkScalar radius1 = random->nextUScalar1() + 0.0001f; // make sure radius1 != 0 in TestCreate()
[all …]
DSkLinearGradient.cpp532 SkPoint points[] = {{random->nextUScalar1(), random->nextUScalar1()}, in TestCreate()
533 {random->nextUScalar1(), random->nextUScalar1()}}; in TestCreate()
/external/skia/include/utils/
DSkRandom.h113 SkScalar nextUScalar1() { return SkFixedToScalar(this->nextUFixed1()); } in nextUScalar1() function
119 return this->nextUScalar1() * (max - min) + min; in nextRangeScalar()
135 return this->nextUScalar1() <= fractionTrue; in nextBiasedBool()
/external/skia/src/animator/
DSkDisplayRandom.cpp48 SkScalar random = fRandom.nextUScalar1(); in getProperty()

12