/external/skqp/samplecode/ |
D | SampleHairCurves.cpp | 41 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 42 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 43 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 44 rand.nextUScalar1(), rand.nextUScalar1() in onDrawContent() 63 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 64 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 65 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 81 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 82 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 83 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() [all …]
|
D | SampleClip.cpp | 44 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 49 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 58 return min + 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()
|
D | SamplePoints.cpp | 38 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
|
/external/skia/samplecode/ |
D | SampleHairCurves.cpp | 41 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 42 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 43 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 44 rand.nextUScalar1(), rand.nextUScalar1() in onDrawContent() 63 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 64 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 65 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 81 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 82 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() 83 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent() [all …]
|
D | SampleClip.cpp | 44 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 49 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill() 58 return min + 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()
|
D | SamplePoints.cpp | 38 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
|
/external/skqp/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 | 269 path->quadTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480, in makePath() 270 rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 288 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 290 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 680 SkScalar radius = rand.nextUScalar1() * 3; in onDraw() 681 r.fLeft = rand.nextUScalar1() * 300; in onDraw() 682 r.fTop = rand.nextUScalar1() * 300; in onDraw() 687 paint.setStrokeWidth(rand.nextUScalar1() * 5.0f); in onDraw() 781 SkScalar size = rand.nextUScalar1() * 30; in onDraw() 785 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 | PathOpsBench.cpp | 91 SkScalar x = rand.nextUScalar1() * scale; in makerects() 92 SkScalar y = rand.nextUScalar1() * scale; in makerects()
|
D | MorphologyBench.cpp | 61 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw() 62 rand.nextUScalar1() * 400); in onDraw()
|
/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 | PathBench.cpp | 269 path->quadTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480, in makePath() 270 rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 288 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 290 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath() 680 SkScalar radius = rand.nextUScalar1() * 3; in onDraw() 681 r.fLeft = rand.nextUScalar1() * 300; in onDraw() 682 r.fTop = rand.nextUScalar1() * 300; in onDraw() 687 paint.setStrokeWidth(rand.nextUScalar1() * 5.0f); in onDraw() 781 SkScalar size = rand.nextUScalar1() * 30; in onDraw() 785 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()
|
/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()
|
/external/skqp/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()
|
/external/skqp/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()
|
/external/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()
|
/external/skqp/src/gpu/gradients/ |
D | GrGradientShader.cpp | 285 fColors4f[i].fR = random->nextUScalar1(); in RandomParams() 286 fColors4f[i].fG = random->nextUScalar1(); in RandomParams() 287 fColors4f[i].fB = random->nextUScalar1(); in RandomParams() 288 fColors4f[i].fA = random->nextUScalar1(); in RandomParams() 294 stop = i < fColorCount - 1 ? stop + random->nextUScalar1() * (1.f - stop) : 1.f; in RandomParams()
|
/external/skia/src/gpu/gradients/ |
D | GrGradientShader.cpp | 289 fColors4f[i].fR = random->nextUScalar1(); in RandomParams() 290 fColors4f[i].fG = random->nextUScalar1(); in RandomParams() 291 fColors4f[i].fB = random->nextUScalar1(); in RandomParams() 292 fColors4f[i].fA = random->nextUScalar1(); in RandomParams() 298 stop = i < fColorCount - 1 ? stop + random->nextUScalar1() * (1.f - stop) : 1.f; in RandomParams()
|