/external/skia/samplecode/ |
D | SampleHairCurves.cpp | 43 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 …]
|
D | SampleClip.cpp | 46 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()
|
D | SamplePoints.cpp | 40 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
|
D | SampleText.cpp | 103 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
|
D | SamplePath.cpp | 229 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()
|
D | SampleHairline.cpp | 31 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), in generate_pts() 32 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h)); in generate_pts()
|
D | SampleManyRects.cpp | 50 rotate.setRotate(fRandom.nextUScalar1() * 360, in onDrawContent()
|
D | SampleVertices.cpp | 146 v[j].set(rand.nextUScalar1() * 250, rand.nextUScalar1() * 250); in make_tris()
|
/external/skia/bench/ |
D | FSRectBench.cpp | 31 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()
|
D | ShaderMaskBench.cpp | 72 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()
|
D | PathBench.cpp | 275 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 …]
|
D | LineBench.cpp | 36 fPts[i].set(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in LineBench()
|
D | MatrixConvolutionBench.cpp | 53 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 54 rand.nextUScalar1() * 400); in onDraw()
|
D | MorphologyBench.cpp | 61 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 62 rand.nextUScalar1() * 400); in onDraw()
|
D | BlurBench.cpp | 63 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 64 rand.nextUScalar1() * 400); in onDraw()
|
D | XfermodeBench.cpp | 49 random.nextUScalar1() * (size.fWidth - w), in onDraw() 50 random.nextUScalar1() * (size.fHeight - h), in onDraw()
|
D | TextBench.cpp | 141 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw() 142 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
|
D | GeometryBench.cpp | 142 fPts[i].set(rand.nextUScalar1(), rand.nextUScalar1()); in QuadBenchBase()
|
/external/skia/tests/ |
D | SkColor4fTest.cpp | 51 rand.nextUScalar1(), rand.nextUScalar1(), rand.nextUScalar1(), 1 in DEF_TEST() 61 c4.fA = rand.nextUScalar1(); in DEF_TEST()
|
/external/skia/gm/ |
D | strokerects.cpp | 37 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()
|
D | points.cpp | 31 SkScalar y = rand->nextUScalar1() * 480; in fill_pts() 32 SkScalar x = rand->nextUScalar1() * 640; in fill_pts()
|
D | strokes.cpp | 23 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/ |
D | SkTwoPointConicalGradient_gpu.cpp | 185 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/ |
D | SkRandom.h | 104 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/ |
D | GrAlphaThresholdFragmentProcessor.cpp | 155 float innerThresh = d->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate() 156 float outerThresh = d->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate()
|