Searched refs:fRand (Results 1 – 5 of 5) sorted by relevance
/external/skia/samplecode/ |
D | SamplePathFuzz.cpp | 147 fPathDepthLimit = fRand.nextRangeU(1, 2); in randomize() 148 fPathContourCount = fRand.nextRangeU(1, 4); in randomize() 149 fPathSegmentLimit = fRand.nextRangeU(1, 8); in randomize() 154 fPathDepthLimit = fRand.nextRangeU(1, 3); in randomize() 155 fPathContourCount = fRand.nextRangeU(1, 6); in randomize() 156 fPathSegmentLimit = fRand.nextRangeU(1, 16); in randomize() 178 fRand.setSeed(seed); in setSeed() 188 return (SkPath::AddPathMode) fRand.nextRangeU(SkPath::kAppend_AddPathMode, in makeAddPathMode() 193 return (RandomAddPath) fRand.nextRangeU(0, kRandomAddPath_Last); in makeAddPathType() 198 angle = fRand.nextF(); in makeAngle() [all …]
|
D | SamplePathText.cpp | 24 PathText() : fRand(25) { in PathText() 38 fGlyphs[i].init(fRand, p); in PathText() 44 glyph.reset(fRand, this->width(), this->height()); in reset() 84 SkRandom fRand; member in PathText 129 SkScalar t = pow(fRand.nextF(), 3); in reset() 130 *d = ((1 - t) / 60 + t / 10) * (fRand.nextBool() ? screensize : -screensize); in reset() 133 SkScalar t = pow(fRand.nextF(), 25); in reset() 134 v.fDSpin = ((1 - t) * 360 / 7.5 + t * 360 / 1.5) * (fRand.nextBool() ? 1 : -1); in reset() 235 fWaves.reset(fRand, this->width(), this->height()); in reset()
|
D | SampleSVGPong.cpp | 93 SkVector::Make(fRand.nextRangeScalar(kBallSpeedMin, kBallSpeedMax), in onOnceBeforeDraw() 94 fRand.nextRangeScalar(kBallSpeedMin, kBallSpeedMax))); in onOnceBeforeDraw() 257 const SkScalar fuzzed = fabs(spd) + fRand.nextRangeScalar(-kBallSpeedFuzz, kBallSpeedFuzz); in fuzzBallSpeed() 278 SkRandom fRand; member in SVGPongView
|
/external/skia/bench/ |
D | TopoSortBench.cpp | 37 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup() 40 int dep = fRand.nextU() % i; in onDelayedSetup() 53 sk_tool_utils::TopoTestNode::Shuffle(&fGraph, &fRand); in onDraw() 71 SkRandom fRand; member in TopoSortBench
|
/external/skia/gm/ |
D | animatedimageblurs.cpp | 37 fNodes[i].init(&fRand); in onOnceBeforeDraw() 132 SkRandom fRand; member in AnimatedImageBlurs
|