Home
last modified time | relevance | path

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

/external/skia/samplecode/
DSampleClip.cpp30 rand.nextSScalar1() * W, rand.nextSScalar1() * H + 20, in show_text()
44 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_fill()
49 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_fill()
73 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_stroke()
78 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_stroke()
DSampleAtlas.cpp156 fRec[i].fVelocity.fX = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable()
157 fRec[i].fVelocity.fY = rand.nextSScalar1() * kMaxSpeed; in DrawAtlasDrawable()
159 fRec[i].fDScale = rand.nextSScalar1() / 16; in DrawAtlasDrawable()
161 fRec[i].fDRadian = rand.nextSScalar1() / 8; in DrawAtlasDrawable()
163 fRec[i].fDAlpha = rand.nextSScalar1() / 10; in DrawAtlasDrawable()
/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.cpp37 fSrc[i] = rand.nextSScalar1(); in MathBench()
273 fData[i] = rand.nextSScalar1(); in IsFiniteBench()
343 fData[i] = rand.nextSScalar1(); in FloorBench()
464 fVec[i].set(rand.nextSScalar1(), rand.nextSScalar1()); in NormalizeBench()
512 fData[i] = rand.nextSScalar1(); in FixedMathBench()
DPathIterBench.cpp23 pts[i].fX = rand.nextSScalar1(); in rand_pts()
24 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()
DStrokeBench.cpp57 return SkPoint::Make(rand.nextSScalar1() * X, rand.nextSScalar1() * Y); in rand_pt()
/external/skia/tests/
DDrawBitmapRectTest.cpp67 mat->postTranslate(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
70 mat->postScale(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
73 mat->postRotate(rand.nextSScalar1() * 360); in rand_matrix()
76 mat->setPerspX(rand.nextSScalar1()); in rand_matrix()
77 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.cpp270 vectors[i].fX = rand.nextSScalar1(); in test_matrix_min_max_scale()
271 vectors[i].fY = rand.nextSScalar1(); in test_matrix_min_max_scale()
DMathTest.cpp482 SkScalar sx = rand.nextSScalar1(); in test_copysign()
DPathTest.cpp893 pts[i].fX = rand.nextSScalar1(); in test_addPoly()
894 pts[i].fY = rand.nextSScalar1(); in test_addPoly()
/external/skia/src/effects/
DSkDiscretePathEffect.cpp48 SkScalar nextSScalar1() { return SkFixedToScalar(this->nextSFixed1()); } in nextSScalar1() function in LCGRandom
102 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath()
108 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); in filterPath()
DSkLightingImageFilter.cpp1470 return SkPoint3::Make(SkScalarToFloat(random->nextSScalar1()), in random_point3()
1471 SkScalarToFloat(random->nextSScalar1()), in random_point3()
1472 SkScalarToFloat(random->nextSScalar1())); in random_point3()
1708 SkScalar surfaceScale = d->fRandom->nextSScalar1(); in TestCreate()
1925 SkScalar surfaceScale = d->fRandom->nextSScalar1(); in TestCreate()
/external/skia/src/gpu/effects/
DGrConvexPolyEffect.cpp66 SkRect rect = SkRect::MakeLTRB(d->fRandom->nextSScalar1(), in TestCreate()
67 d->fRandom->nextSScalar1(), in TestCreate()
68 d->fRandom->nextSScalar1(), in TestCreate()
69 d->fRandom->nextSScalar1()); in TestCreate()
342 edges[i] = d->fRandom->nextSScalar1(); in TestCreate()
DGrMatrixConvolutionEffect.cpp235 kernel.get()[i] = d->fRandom->nextSScalar1(); in TestCreate()
237 SkScalar gain = d->fRandom->nextSScalar1(); in TestCreate()
238 SkScalar bias = d->fRandom->nextSScalar1(); in TestCreate()
DGrBicubicEffect.cpp187 coefficients[i] = d->fRandom->nextSScalar1(); in TestCreate()
DGrConvolutionEffect.cpp216 kernel[i] = d->fRandom->nextSScalar1(); in TestCreate()
/external/skia/gm/
Dstrokerects.cpp42 SkScalar hoffset = rand.nextSScalar1(); in rnd_rect()
43 SkScalar woffset = rand.nextSScalar1(); in rnd_rect()
Dgetpostextpath.cpp48 pos[i].set(x, y + rand.nextSScalar1() * 24);
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
/external/skia/src/core/
DSkColorMatrixFilterRowMajor255.cpp388 colorMatrix[i] = d->fRandom->nextSScalar1(); in TestCreate()