Home
last modified time | relevance | path

Searched refs:nextSScalar1 (Results 1 – 21 of 21) sorted by relevance

/external/skia/samplecode/
DSampleClip.cpp29 rand.nextSScalar1() * W, rand.nextSScalar1() * H + 20, in show_text()
43 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_fill()
48 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_fill()
72 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_stroke()
77 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_stroke()
/external/skia/bench/
DScalarBench.cpp50 array[i] = rand.nextSScalar1(); in init9()
100 fArray[i] = rand.nextSScalar1(); in IsFiniteScalarBench()
138 fPts[i].fX = rand.nextSScalar1(); in RectBoundsBench()
139 fPts[i].fY = rand.nextSScalar1(); in RectBoundsBench()
DMathBench.cpp30 fSrc[i] = rand.nextSScalar1(); in MathBench()
276 fData[i] = rand.nextSScalar1(); in IsFiniteBench()
346 fData[i] = rand.nextSScalar1(); in FloorBench()
467 fVec[i].set(rand.nextSScalar1(), rand.nextSScalar1()); in NormalizeBench()
515 fData[i] = rand.nextSScalar1(); in FixedMathBench()
DPathIterBench.cpp22 pts[i].fX = rand.nextSScalar1(); in rand_pts()
23 pts[i].fY = rand.nextSScalar1(); in rand_pts()
DMatrixBench.cpp93 array[i] = rand.nextSScalar1(); in init9()
287 fSrc[i].set(rand.nextSScalar1(), rand.nextSScalar1()); in MapPointsMatrixBench()
/external/skia/tests/
DDrawBitmapRectTest.cpp63 mat->postTranslate(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
66 mat->postScale(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
69 mat->postRotate(rand.nextSScalar1() * 360); in rand_matrix()
72 mat->setPerspX(rand.nextSScalar1()); in rand_matrix()
73 mat->setPerspY(rand.nextSScalar1()); in rand_matrix()
DGeometryTest.cpp52 pts[j].set(rand.nextSScalar1() * 100, rand.nextSScalar1() * 100); in test_evalquadat()
91 pts[j].set(rand.nextSScalar1() * 100, rand.nextSScalar1() * 100); in test_conic()
DMatrixTest.cpp263 vectors[i].fX = rand.nextSScalar1(); in test_matrix_min_max_scale()
264 vectors[i].fY = rand.nextSScalar1(); in test_matrix_min_max_scale()
DMathTest.cpp449 SkScalar sx = rand.nextSScalar1(); in test_copysign()
DPathTest.cpp775 pts[i].fX = rand.nextSScalar1(); in test_addPoly()
776 pts[i].fY = rand.nextSScalar1(); in test_addPoly()
/external/skia/src/effects/
DSkDiscretePathEffect.cpp47 SkScalar nextSScalar1() { return SkFixedToScalar(this->nextSFixed1()); } in nextSScalar1() function in LCGRandom
101 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath()
107 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath()
DSkLightingImageFilter.cpp1368 return SkPoint3(SkScalarToFloat(random->nextSScalar1()), in random_point3()
1369 SkScalarToFloat(random->nextSScalar1()), in random_point3()
1370 SkScalarToFloat(random->nextSScalar1())); in random_point3()
1594 SkScalar surfaceScale = random->nextSScalar1(); in TestCreate()
1802 SkScalar surfaceScale = random->nextSScalar1(); in TestCreate()
DSkColorMatrixFilter.cpp554 colorMatrix.fMat[i] = random->nextSScalar1(); in TestCreate()
/external/skia/src/gpu/effects/
DGrConvexPolyEffect.cpp68 SkRect rect = SkRect::MakeLTRB(random->nextSScalar1(), in TestCreate()
69 random->nextSScalar1(), in TestCreate()
70 random->nextSScalar1(), in TestCreate()
71 random->nextSScalar1()); in TestCreate()
371 edges[i] = random->nextSScalar1(); in TestCreate()
DGrMatrixConvolutionEffect.cpp251 kernel.get()[i] = random->nextSScalar1(); in TestCreate()
253 SkScalar gain = random->nextSScalar1(); in TestCreate()
254 SkScalar bias = random->nextSScalar1(); in TestCreate()
DGrBicubicEffect.cpp191 coefficients[i] = random->nextSScalar1(); in TestCreate()
DGrConvolutionEffect.cpp231 kernel[i] = random->nextSScalar1(); in TestCreate()
/external/skia/gm/
Dstrokerects.cpp42 SkScalar hoffset = rand.nextSScalar1(); in rnd_rect()
43 SkScalar woffset = rand.nextSScalar1(); in rnd_rect()
Dgetpostextpath.cpp60 pos[i].set(x, y + rand.nextSScalar1() * 24); in onDraw()
Dstrokes.cpp26 SkScalar hoffset = rand.nextSScalar1(); in rnd_rect()
27 SkScalar woffset = rand.nextSScalar1(); in rnd_rect()
/external/skia/include/utils/
DSkRandom.h125 SkScalar nextSScalar1() { return SkFixedToScalar(this->nextSFixed1()); } in nextSScalar1() function