Home
last modified time | relevance | path

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

123

/external/skqp/samplecode/
DSampleClip.cpp31 rand.nextSScalar1() * W, rand.nextSScalar1() * H + 20, in show_text()
45 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_fill()
50 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_fill()
74 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_stroke()
79 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/samplecode/
DSampleClip.cpp31 rand.nextSScalar1() * W, rand.nextSScalar1() * H + 20, in show_text()
45 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_fill()
50 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_fill()
74 r.setXYWH(rand.nextSScalar1() * W, rand.nextSScalar1() * H, in show_stroke()
79 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/skqp/tests/
DDrawBitmapRectTest.cpp27 mat->postTranslate(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
30 mat->postScale(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
33 mat->postRotate(rand.nextSScalar1() * 360); in rand_matrix()
36 mat->setPerspX(rand.nextSScalar1()); in rand_matrix()
37 mat->setPerspY(rand.nextSScalar1()); in rand_matrix()
/external/skia/tests/
DDrawBitmapRectTest.cpp27 mat->postTranslate(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
30 mat->postScale(rand.nextSScalar1(), rand.nextSScalar1()); in rand_matrix()
33 mat->postRotate(rand.nextSScalar1() * 360); in rand_matrix()
36 mat->setPerspX(rand.nextSScalar1()); in rand_matrix()
37 mat->setPerspY(rand.nextSScalar1()); in rand_matrix()
/external/skia/bench/
DScalarBench.cpp49 array[i] = rand.nextSScalar1(); in init9()
99 fArray[i] = rand.nextSScalar1(); in IsFiniteScalarBench()
137 fPts[i].fX = rand.nextSScalar1(); in RectBoundsBench()
138 fPts[i].fY = rand.nextSScalar1(); in RectBoundsBench()
DMathBench.cpp39 fSrc[i] = rand.nextSScalar1(); in MathBench()
265 fData[i] = rand.nextSScalar1(); in IsFiniteBench()
335 fData[i] = rand.nextSScalar1(); in FloorBench()
456 fVec[i].set(rand.nextSScalar1(), rand.nextSScalar1()); in NormalizeBench()
504 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()
DStrokeBench.cpp57 return SkPoint::Make(rand.nextSScalar1() * X, rand.nextSScalar1() * Y); in rand_pt()
DMatrixBench.cpp92 array[i] = rand.nextSScalar1(); in init9()
286 fSrc[i].set(rand.nextSScalar1(), rand.nextSScalar1()); in MapPointsMatrixBench()
/external/skqp/bench/
DScalarBench.cpp49 array[i] = rand.nextSScalar1(); in init9()
99 fArray[i] = rand.nextSScalar1(); in IsFiniteScalarBench()
137 fPts[i].fX = rand.nextSScalar1(); in RectBoundsBench()
138 fPts[i].fY = rand.nextSScalar1(); in RectBoundsBench()
DMathBench.cpp39 fSrc[i] = rand.nextSScalar1(); in MathBench()
265 fData[i] = rand.nextSScalar1(); in IsFiniteBench()
335 fData[i] = rand.nextSScalar1(); in FloorBench()
456 fVec[i].set(rand.nextSScalar1(), rand.nextSScalar1()); in NormalizeBench()
504 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()
DStrokeBench.cpp57 return SkPoint::Make(rand.nextSScalar1() * X, rand.nextSScalar1() * Y); in rand_pt()
/external/skqp/src/gpu/effects/
DGrAARectEffect.fp53 SkRect rect = SkRect::MakeLTRB(d->fRandom->nextSScalar1(),
54 d->fRandom->nextSScalar1(),
55 d->fRandom->nextSScalar1(),
56 d->fRandom->nextSScalar1());
DGrAARectEffect.cpp105 SkRect rect = SkRect::MakeLTRB(d->fRandom->nextSScalar1(), in TestCreate()
106 d->fRandom->nextSScalar1(), in TestCreate()
107 d->fRandom->nextSScalar1(), in TestCreate()
108 d->fRandom->nextSScalar1()); in TestCreate()
/external/skia/src/gpu/effects/
DGrAARectEffect.fp53 SkRect rect = SkRect::MakeLTRB(d->fRandom->nextSScalar1(),
54 d->fRandom->nextSScalar1(),
55 d->fRandom->nextSScalar1(),
56 d->fRandom->nextSScalar1());
DGrAARectEffect.cpp105 SkRect rect = SkRect::MakeLTRB(d->fRandom->nextSScalar1(), in TestCreate()
106 d->fRandom->nextSScalar1(), in TestCreate()
107 d->fRandom->nextSScalar1(), in TestCreate()
108 d->fRandom->nextSScalar1()); in TestCreate()
/external/skia/src/effects/
DSkDiscretePathEffect.cpp60 SkScalar nextSScalar1() { return SkFixedToScalar(this->nextSFixed1()); } in nextSScalar1() function in LCGRandom
114 Perterb(&p, v, rand.nextSScalar1() * scale); in filterPath()
120 Perterb(&p, v, rand.nextSScalar1() * scale); in filterPath()
/external/skqp/src/effects/
DSkDiscretePathEffect.cpp60 SkScalar nextSScalar1() { return SkFixedToScalar(this->nextSFixed1()); } in nextSScalar1() function in LCGRandom
114 Perterb(&p, v, rand.nextSScalar1() * scale); in filterPath()
120 Perterb(&p, v, rand.nextSScalar1() * scale); in filterPath()
/external/skqp/gm/
Dstrokerects.cpp41 SkScalar hoffset = rand.nextSScalar1(); in rnd_rect()
42 SkScalar woffset = rand.nextSScalar1(); in rnd_rect()
/external/skia/gm/
Dstrokerects.cpp41 SkScalar hoffset = rand.nextSScalar1(); in rnd_rect()
42 SkScalar woffset = rand.nextSScalar1(); in rnd_rect()
/external/skia/src/gpu/ops/
DGrShadowRRectOp.cpp682 SkScalar rotate = random->nextSScalar1() * 360.f; in GR_DRAW_OP_TEST_DEFINE()
683 SkScalar translateX = random->nextSScalar1() * 1000.f; in GR_DRAW_OP_TEST_DEFINE()
684 SkScalar translateY = random->nextSScalar1() * 1000.f; in GR_DRAW_OP_TEST_DEFINE()
685 SkScalar scale = random->nextSScalar1() * 100.f; in GR_DRAW_OP_TEST_DEFINE()
690 SkScalar insetWidth = random->nextSScalar1() * 72.f; in GR_DRAW_OP_TEST_DEFINE()
691 SkScalar blurWidth = random->nextSScalar1() * 72.f; in GR_DRAW_OP_TEST_DEFINE()
692 SkScalar blurClamp = random->nextSScalar1(); in GR_DRAW_OP_TEST_DEFINE()
/external/skqp/src/gpu/ops/
DGrShadowRRectOp.cpp683 SkScalar rotate = random->nextSScalar1() * 360.f; in GR_DRAW_OP_TEST_DEFINE()
684 SkScalar translateX = random->nextSScalar1() * 1000.f; in GR_DRAW_OP_TEST_DEFINE()
685 SkScalar translateY = random->nextSScalar1() * 1000.f; in GR_DRAW_OP_TEST_DEFINE()
686 SkScalar scale = random->nextSScalar1() * 100.f; in GR_DRAW_OP_TEST_DEFINE()
691 SkScalar insetWidth = random->nextSScalar1() * 72.f; in GR_DRAW_OP_TEST_DEFINE()
692 SkScalar blurWidth = random->nextSScalar1() * 72.f; in GR_DRAW_OP_TEST_DEFINE()
693 SkScalar blurClamp = random->nextSScalar1(); in GR_DRAW_OP_TEST_DEFINE()

123