Home
last modified time | relevance | path

Searched refs:fRandom (Results 1 – 8 of 8) sorted by relevance

/external/skia/samplecode/
DSampleManyRects.cpp42 SkRect rect = SkRect::MakeWH(SkIntToScalar(fRandom.nextRangeU(10, 100)), in onDrawContent()
43 SkIntToScalar(fRandom.nextRangeU(10, 100))); in onDrawContent()
44 int x = fRandom.nextRangeU(0, dsize.fWidth); in onDrawContent()
45 int y = fRandom.nextRangeU(0, dsize.fHeight); in onDrawContent()
53 rotate.setRotate(fRandom.nextUScalar1() * 360, in onDrawContent()
64 paint.setColor(fRandom.nextU()); in onDrawContent()
72 SkRandom fRandom; member in ManyRectsView
/external/skia/bench/
DMatrixBench.cpp151 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f; in onPreDraw()
152 SkScalar sx = fRandom.nextRangeF(-3000.f, 3000.f); in onPreDraw()
153 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onPreDraw()
154 SkScalar rot1 = fRandom.nextRangeF(-180, 180); in onPreDraw()
168 SkRandom fRandom; member in DecomposeMatrixBench
DAAClipBench.cpp92 SkRandom fRandom; member in NestedAAClipBench
140 paint.setColor(0xff000000 | fRandom.nextU()); in recurse()
DPathBench.cpp234 fVerbCnts[i] = fRandom.nextRangeU(minVerbs, maxVerbs + 1); in createData()
239 fVerbs[i] = static_cast<SkPath::Verb>(fRandom.nextULessThan(SkPath::kDone_Verb)); in createData()
244 fPoints[i].set(fRandom.nextRangeScalar(bounds->fLeft, bounds->fRight), in createData()
245 fRandom.nextRangeScalar(bounds->fTop, bounds->fBottom)); in createData()
313 SkRandom fRandom; member in RandomPathBench
/external/skia/src/animator/
DSkDisplayRandom.cpp48 SkScalar random = fRandom.nextUScalar1(); in getProperty()
63 fRandom.setSeed(value.fOperand.fS32); in setProperty()
DSkDisplayMath.h25 mutable SkRandom fRandom;
DSkDisplayRandom.h37 mutable SkRandom fRandom; variable
DSkDisplayMath.cpp193 scalarResult = fRandom.nextUScalar1(); in executeFunction()