Home
last modified time | relevance | path

Searched refs:fRand (Results 1 – 15 of 15) sorted by relevance

/external/skqp/samplecode/
DSamplePathFuzz.cpp146 fPathDepthLimit = fRand.nextRangeU(1, 2); in randomize()
147 fPathContourCount = fRand.nextRangeU(1, 4); in randomize()
148 fPathSegmentLimit = fRand.nextRangeU(1, 8); in randomize()
153 fPathDepthLimit = fRand.nextRangeU(1, 3); in randomize()
154 fPathContourCount = fRand.nextRangeU(1, 6); in randomize()
155 fPathSegmentLimit = fRand.nextRangeU(1, 16); in randomize()
177 fRand.setSeed(seed); in setSeed()
187 return (SkPath::AddPathMode) fRand.nextRangeU(SkPath::kAppend_AddPathMode, in makeAddPathMode()
192 return (RandomAddPath) fRand.nextRangeU(0, kRandomAddPath_Last); in makeAddPathType()
197 angle = fRand.nextF(); in makeAngle()
[all …]
DSampleFlutterAnimate.cpp81 char c = fRand.nextULessThan(26) + 65; in initChars()
84 fChars[i].fPosition = SkPoint::Make(fRand.nextF()*748 + 10, fRand.nextF()*1004 + 10); in initChars()
85 fChars[i].fStartRotation = fRand.nextF(); in initChars()
86 fChars[i].fEndRotation = fRand.nextF() * 20 - 10; in initChars()
93 SkRandom fRand; member in FlutterAnimateView
DSampleChineseFling.cpp76 fIndex += fRand.nextRangeU(5, 20); in onDrawContent()
107 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomWord()
115 SkRandom fRand; member in ChineseFlingView
234 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomLine()
242 SkRandom fRand; member in ChineseZoomView
DSamplePathText.cpp30 glyph.reset(fRand, this->width(), this->height()); in reset()
47 fGlyphs[i].init(fRand, p); in onOnceBeforeDraw()
108 SkRandom fRand{25}; member in PathText
155 SkScalar t = pow(fRand.nextF(), 3); in reset()
156 *d = ((1 - t) / 60 + t / 10) * (fRand.nextBool() ? screensize : -screensize); in reset()
159 SkScalar t = pow(fRand.nextF(), 25); in reset()
160 v.fDSpin = ((1 - t) * 360 / 7.5 + t * 360 / 1.5) * (fRand.nextBool() ? 1 : -1); in reset()
261 fWaves.reset(fRand, this->width(), this->height()); in reset()
/external/skia/samplecode/
DSampleFlutterAnimate.cpp73 char c = fRand.nextULessThan(26) + 65; in initChars()
76 fChars[i].fPosition = SkPoint::Make(fRand.nextF()*748 + 10, fRand.nextF()*1004 + 10); in initChars()
77 fChars[i].fStartRotation = fRand.nextF(); in initChars()
78 fChars[i].fEndRotation = fRand.nextF() * 20 - 10; in initChars()
85 SkRandom fRand; member in FlutterAnimateView
DSampleChineseFling.cpp47 SkRandom fRand; member in ChineseFlingView
70 fIndex += fRand.nextRangeU(5, 20); in onDrawContent()
100 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomWord()
113 SkRandom fRand; member in ChineseZoomView
214 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomLine()
DSamplePathText.cpp30 glyph.reset(fRand, this->width(), this->height()); in reset()
48 fGlyphs[i].init(fRand, p); in onOnceBeforeDraw()
104 SkRandom fRand{25}; member in PathText
151 SkScalar t = pow(fRand.nextF(), 3); in reset()
152 *d = ((1 - t) / 60 + t / 10) * (fRand.nextBool() ? screensize : -screensize); in reset()
155 SkScalar t = pow(fRand.nextF(), 25); in reset()
156 v.fDSpin = ((1 - t) * 360 / 7.5 + t * 360 / 1.5) * (fRand.nextBool() ? 1 : -1); in reset()
257 fWaves.reset(fRand, this->width(), this->height()); in reset()
/external/skqp/bench/
DTopoSortBench.cpp36 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup()
39 int dep = fRand.nextU() % i; in onDelayedSetup()
52 sk_tool_utils::TopoTestNode::Shuffle(&fGraph, &fRand); in onDraw()
70 SkRandom fRand; member in TopoSortBench
/external/skia/bench/
DTopoSortBench.cpp36 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup()
39 int dep = fRand.nextU() % i; in onDelayedSetup()
52 ToolUtils::TopoTestNode::Shuffle(&fGraph, &fRand); in onDraw()
70 SkRandom fRand; member in TopoSortBench
/external/skqp/gm/
Dmandoline.cpp121 float T = (0 == fRand.nextU() % 10) ? 0 : scalbnf(1, -(int)fRand.nextRangeU(10, 149)); in chooseChopT()
126 SkRandom fRand; member in skiagm::MandolineSlicer
Danimatedimageblurs.cpp36 fNodes[i].init(&fRand); in onOnceBeforeDraw()
131 SkRandom fRand; member in AnimatedImageBlurs
/external/skia/gm/
Dmandoline.cpp127 float T = (0 == fRand.nextU() % 10) ? 0 : scalbnf(1, -(int)fRand.nextRangeU(10, 149)); in chooseChopT()
132 SkRandom fRand; member in skiagm::MandolineSlicer
Danimatedimageblurs.cpp45 fNodes[i].init(&fRand); in onOnceBeforeDraw()
138 SkRandom fRand; member in AnimatedImageBlurs
/external/skia/modules/sksg/samples/
DSampleSVGPong.cpp93 SkVector::Make(fRand.nextRangeScalar(kBallSpeedMin, kBallSpeedMax), in onOnceBeforeDraw()
94 fRand.nextRangeScalar(kBallSpeedMin, kBallSpeedMax))); in onOnceBeforeDraw()
277 const SkScalar fuzzed = fabs(spd) + fRand.nextRangeScalar(-kBallSpeedFuzz, kBallSpeedFuzz); in fuzzBallSpeed()
299 SkRandom fRand; member in PongView
/external/skqp/modules/sksg/samples/
DSampleSVGPong.cpp92 SkVector::Make(fRand.nextRangeScalar(kBallSpeedMin, kBallSpeedMax), in onOnceBeforeDraw()
93 fRand.nextRangeScalar(kBallSpeedMin, kBallSpeedMax))); in onOnceBeforeDraw()
267 const SkScalar fuzzed = fabs(spd) + fRand.nextRangeScalar(-kBallSpeedFuzz, kBallSpeedFuzz); in fuzzBallSpeed()
289 SkRandom fRand; member in PongView