Home
last modified time | relevance | path

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

/third_party/flutter/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()
/third_party/skia/samplecode/
DSampleFlutterAnimate.cpp68 char c = fRand.nextULessThan(26) + 65; in initChars()
71 fChars[i].fPosition = SkPoint::Make(fRand.nextF()*748 + 10, fRand.nextF()*1004 + 10); in initChars()
72 fChars[i].fStartRotation = fRand.nextF(); in initChars()
73 fChars[i].fEndRotation = fRand.nextF() * 20 - 10; in initChars()
80 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
218 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomLine()
DSamplePathText.cpp31 glyph.reset(fRand, this->width(), this->height()); in reset()
33 fGlyphAnimator->reset(&fRand, this->width(), this->height()); in reset()
50 fGlyphs[i].init(fRand, p); in onOnceBeforeDraw()
118 SkRandom fRand{25}; member in PathText
435 fGlyphAnimator->reset(&fRand, this->width(), this->height()); in onChar()
439 fGlyphAnimator->reset(&fRand, this->width(), this->height()); in onChar()
443 fGlyphAnimator->reset(&fRand, this->width(), this->height()); in onChar()
/third_party/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
/third_party/flutter/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
/third_party/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.cpp46 fNodes[i].init(&fRand); in onOnceBeforeDraw()
139 SkRandom fRand; member in AnimatedImageBlurs
/third_party/flutter/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
/third_party/flutter/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
/third_party/skia/modules/sksg/samples/
DSampleSVGPong.cpp95 SkVector::Make(fRand.nextRangeScalar(kBallSpeedMin, kBallSpeedMax), in onOnceBeforeDraw()
96 fRand.nextRangeScalar(kBallSpeedMin, kBallSpeedMax))); in onOnceBeforeDraw()
276 const SkScalar fuzzed = fabs(spd) + fRand.nextRangeScalar(-kBallSpeedFuzz, kBallSpeedFuzz); in fuzzBallSpeed()
298 SkRandom fRand; member in PongView