/third_party/skia/samplecode/ |
D | SampleHairCurves.cpp | 34 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 35 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 36 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 37 rand.nextUScalar1(), rand.nextUScalar1() in onDrawContent() 56 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 57 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 58 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 74 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 75 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 76 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() [all …]
|
D | SampleClip.cpp | 43 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 48 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 56 return min + rand.nextUScalar1() * (max - min); in randRange() 70 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke() 75 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke()
|
D | SamplePath.cpp | 221 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in ArcToView() 222 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in ArcToView() 319 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in FatStroke() 320 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in FatStroke() 459 fPts[i].fX = 20 + rand.nextUScalar1() * 640; in CubicCurve() 460 fPts[i].fY = 20 + rand.nextUScalar1() * 480; in CubicCurve()
|
D | SampleVertices.cpp | 134 v[j].set(rand.nextUScalar1() * 250, rand.nextUScalar1() * 250); in make_tris()
|
D | SampleManyRects.cpp | 43 rotate.setRotate(fRandom.nextUScalar1() * 360, in onDrawContent()
|
D | SampleSlides.cpp | 281 v[j].set(rand.nextUScalar1() * 250, rand.nextUScalar1() * 250); in make_tris()
|
D | SampleStrokePath.cpp | 178 float r = rand.nextUScalar1() + 0.5f; in onDrawContent()
|
/third_party/skia/docs/examples/ |
D | drawarcs.cpp | 15 SkScalar x = rand.nextUScalar1() * 200; in draw() 16 SkScalar y = rand.nextUScalar1() * 200; in draw() 19 path.addArc(SkRect::MakeXYWH(x, y, 70, 70), rand.nextUScalar1() * 360, in draw() 20 rand.nextUScalar1() * 360); in draw()
|
/third_party/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 | PathBench.cpp | 271 path->quadTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480, in makePath() 272 rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 290 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 292 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 682 SkScalar radius = rand.nextUScalar1() * 3; in onDraw() 683 r.fLeft = rand.nextUScalar1() * 300; in onDraw() 684 r.fTop = rand.nextUScalar1() * 300; in onDraw() 689 paint.setStrokeWidth(rand.nextUScalar1() * 5.0f); in onDraw() 783 SkScalar size = rand.nextUScalar1() * 30; in onDraw() 787 r.fLeft = rand.nextUScalar1() * 300; in onDraw() [all …]
|
D | LineBench.cpp | 36 fPts[i].set(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in LineBench()
|
D | MorphologyBench.cpp | 61 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 62 rand.nextUScalar1() * 400); in onDraw()
|
D | MatrixConvolutionBench.cpp | 64 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 65 rand.nextUScalar1() * 400); in onDraw()
|
D | BlurBench.cpp | 62 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 63 rand.nextUScalar1() * 400); in onDraw()
|
D | BlendmodeBench.cpp | 75 random.nextUScalar1() * (size.fWidth - w), in onDraw() 76 random.nextUScalar1() * (size.fHeight - h), in onDraw()
|
D | PathOpsBench.cpp | 89 SkScalar x = rand.nextUScalar1() * scale; in makerects() 90 SkScalar y = rand.nextUScalar1() * scale; in makerects()
|
D | GeometryBench.cpp | 143 fPts[i].set(rand.nextUScalar1(), rand.nextUScalar1()); in QuadBenchBase()
|
D | StrokeBench.cpp | 83 path.conicTo(rand_pt(rand), rand_pt(rand), rand.nextUScalar1()); in conic_path_maker()
|
/third_party/skia/gm/ |
D | strokerects.cpp | 41 SkScalar x = rand.nextUScalar1() * W; in rnd_rect() 42 SkScalar y = rand.nextUScalar1() * H; in rnd_rect() 43 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect() 44 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect()
|
D | points.cpp | 41 SkScalar y = rand->nextUScalar1() * 480; in fill_pts() 42 SkScalar x = rand->nextUScalar1() * 640; in fill_pts()
|
D | strokes.cpp | 36 SkScalar x = rand.nextUScalar1() * W; in rnd_rect() 37 SkScalar y = rand.nextUScalar1() * H; in rnd_rect() 38 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect() 39 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect() 292 SkScalar x = rand.nextUScalar1() * (W >> 1); in onOnceBeforeDraw() 293 SkScalar y = rand.nextUScalar1() * (H >> 1); in onOnceBeforeDraw()
|
D | hittestpath.cpp | 53 randoms[index] = rand.nextUScalar1();
|
/third_party/skia/include/utils/ |
D | SkRandom.h | 97 SkScalar nextUScalar1() { return SkFixedToScalar(this->nextUFixed1()); } in nextUScalar1() function 103 return this->nextUScalar1() * (max - min) + min; in nextRangeScalar() 119 return this->nextUScalar1() <= fractionTrue; in nextBiasedBool()
|
/third_party/skia/tests/ |
D | OpChainTest.cpp | 70 SkScalar mergeProbability = random->nextUScalar1(); in init_combinable() 77 if (random->nextUScalar1() < mergeProbability) { in init_combinable() 82 if (random->nextUScalar1() < mergeProbability) { in init_combinable()
|
/third_party/skia/src/gpu/gradients/ |
D | GrGradientShader.cpp | 1009 fColors4f[i].fR = random->nextUScalar1(); in RandomParams() 1010 fColors4f[i].fG = random->nextUScalar1(); in RandomParams() 1011 fColors4f[i].fB = random->nextUScalar1(); in RandomParams() 1012 fColors4f[i].fA = random->nextUScalar1(); in RandomParams() 1018 stop = i < fColorCount - 1 ? stop + random->nextUScalar1() * (1.f - stop) : 1.f; in RandomParams()
|