/external/skqp/samplecode/ |
D | SamplePathFuzz.cpp | 146 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 …]
|
D | SampleFlutterAnimate.cpp | 81 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
|
D | SampleChineseFling.cpp | 76 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
|
D | SamplePathText.cpp | 30 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/ |
D | SampleFlutterAnimate.cpp | 73 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
|
D | SampleChineseFling.cpp | 47 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()
|
D | SamplePathText.cpp | 30 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/ |
D | TopoSortBench.cpp | 36 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/ |
D | TopoSortBench.cpp | 36 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/ |
D | mandoline.cpp | 121 float T = (0 == fRand.nextU() % 10) ? 0 : scalbnf(1, -(int)fRand.nextRangeU(10, 149)); in chooseChopT() 126 SkRandom fRand; member in skiagm::MandolineSlicer
|
D | animatedimageblurs.cpp | 36 fNodes[i].init(&fRand); in onOnceBeforeDraw() 131 SkRandom fRand; member in AnimatedImageBlurs
|
/external/skia/gm/ |
D | mandoline.cpp | 127 float T = (0 == fRand.nextU() % 10) ? 0 : scalbnf(1, -(int)fRand.nextRangeU(10, 149)); in chooseChopT() 132 SkRandom fRand; member in skiagm::MandolineSlicer
|
D | animatedimageblurs.cpp | 45 fNodes[i].init(&fRand); in onOnceBeforeDraw() 138 SkRandom fRand; member in AnimatedImageBlurs
|
/external/skia/modules/sksg/samples/ |
D | SampleSVGPong.cpp | 93 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/ |
D | SampleSVGPong.cpp | 92 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
|