Home
last modified time | relevance | path

Searched refs:nextRangeScalar (Results 1 – 25 of 92) sorted by relevance

1234

/external/skia/gm/
Dbeziers.cpp19 auto a = rand.nextRangeScalar(0,W), in rnd_quad()
20 b = rand.nextRangeScalar(0,H); in rnd_quad()
23 auto c = rand.nextRangeScalar(W/4, W), in rnd_quad()
24 d = rand.nextRangeScalar( 0, H), in rnd_quad()
25 e = rand.nextRangeScalar( 0, W), in rnd_quad()
26 f = rand.nextRangeScalar(H/4, H); in rnd_quad()
30 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_quad()
37 auto a = rand.nextRangeScalar(0,W), in rnd_cubic()
38 b = rand.nextRangeScalar(0,H); in rnd_cubic()
41 auto c = rand.nextRangeScalar(W/4, W), in rnd_cubic()
[all …]
Dsimplerect.cpp40 SkScalar x = rand.nextRangeScalar(min, max); in onDraw()
41 SkScalar y = rand.nextRangeScalar(min, max); in onDraw()
42 SkScalar w = rand.nextRangeScalar(0, size); in onDraw()
43 SkScalar h = rand.nextRangeScalar(0, size); in onDraw()
Dvariedtext.cpp77 fPtSizes[i] = random.nextRangeScalar(kMinPtSize, kMaxPtSize); in onOnceBeforeDraw()
95 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); in onOnceBeforeDraw()
96 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom); in onOnceBeforeDraw()
/external/skqp/gm/
Dbeziers.cpp19 auto a = rand.nextRangeScalar(0,W), in rnd_quad()
20 b = rand.nextRangeScalar(0,H); in rnd_quad()
23 auto c = rand.nextRangeScalar(W/4, W), in rnd_quad()
24 d = rand.nextRangeScalar( 0, H), in rnd_quad()
25 e = rand.nextRangeScalar( 0, W), in rnd_quad()
26 f = rand.nextRangeScalar(H/4, H); in rnd_quad()
30 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_quad()
37 auto a = rand.nextRangeScalar(0,W), in rnd_cubic()
38 b = rand.nextRangeScalar(0,H); in rnd_cubic()
41 auto c = rand.nextRangeScalar(W/4, W), in rnd_cubic()
[all …]
Dsimplerect.cpp40 SkScalar x = rand.nextRangeScalar(min, max); in onDraw()
41 SkScalar y = rand.nextRangeScalar(min, max); in onDraw()
42 SkScalar w = rand.nextRangeScalar(0, size); in onDraw()
43 SkScalar h = rand.nextRangeScalar(0, size); in onDraw()
/external/skqp/bench/
DPicturePlaybackBench.cpp54 SkScalar x = rand.nextRangeScalar(0, 1024), in onDelayedSetup()
55 y = rand.nextRangeScalar(0, 1024), in onDelayedSetup()
56 w = rand.nextRangeScalar(0, 128), in onDelayedSetup()
57 h = rand.nextRangeScalar(0, 128); in onDelayedSetup()
76 case kRandom: x = rand.nextRangeScalar(0, 768); in onDraw()
77 y = rand.nextRangeScalar(0, 768); in onDraw()
DBlendmodeBench.cpp40 font.setSize(random.nextRangeScalar(12, 96)); in onDraw()
41 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth), in onDraw()
42 y = random.nextRangeScalar(0, (SkScalar)size.fHeight); in onDraw()
49 SkScalar w = random.nextRangeScalar(50, 100); in onDraw()
50 SkScalar h = random.nextRangeScalar(50, 100); in onDraw()
DRectoriBench.cpp32 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f); in onDraw()
33 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma); in onDraw()
35 SkScalar x = Random.nextRangeScalar(0.0f, W - size); in onDraw()
36 SkScalar y = Random.nextRangeScalar(0.0f, H - size); in onDraw()
DGeometryBench.cpp54 SkScalar x = rand.nextRangeScalar(min, max); in onDelayedSetup()
55 SkScalar y = rand.nextRangeScalar(min, max); in onDelayedSetup()
56 SkScalar w = rand.nextRangeScalar(min, max); in onDelayedSetup()
57 SkScalar h = rand.nextRangeScalar(min, max); in onDelayedSetup()
/external/skia/bench/
DPicturePlaybackBench.cpp54 SkScalar x = rand.nextRangeScalar(0, 1024), in onDelayedSetup()
55 y = rand.nextRangeScalar(0, 1024), in onDelayedSetup()
56 w = rand.nextRangeScalar(0, 128), in onDelayedSetup()
57 h = rand.nextRangeScalar(0, 128); in onDelayedSetup()
76 case kRandom: x = rand.nextRangeScalar(0, 768); in onDraw()
77 y = rand.nextRangeScalar(0, 768); in onDraw()
DBlendmodeBench.cpp40 font.setSize(random.nextRangeScalar(12, 96)); in onDraw()
41 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth), in onDraw()
42 y = random.nextRangeScalar(0, (SkScalar)size.fHeight); in onDraw()
49 SkScalar w = random.nextRangeScalar(50, 100); in onDraw()
50 SkScalar h = random.nextRangeScalar(50, 100); in onDraw()
DRectoriBench.cpp32 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f); in onDraw()
33 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma); in onDraw()
35 SkScalar x = Random.nextRangeScalar(0.0f, W - size); in onDraw()
36 SkScalar y = Random.nextRangeScalar(0.0f, H - size); in onDraw()
DGeometryBench.cpp54 SkScalar x = rand.nextRangeScalar(min, max); in onDelayedSetup()
55 SkScalar y = rand.nextRangeScalar(min, max); in onDelayedSetup()
56 SkScalar w = rand.nextRangeScalar(min, max); in onDelayedSetup()
57 SkScalar h = rand.nextRangeScalar(min, max); in onDelayedSetup()
/external/skqp/src/gpu/ops/
DGrDrawAtlasOp.cpp210 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), in random_xform()
211 random->nextRangeScalar(kMinRotate, kMaxRotate), in random_xform()
212 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
213 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
214 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
215 random->nextRangeScalar(kMinExtent, kMaxExtent)); in random_xform()
223 SkRect texRect = SkRect::MakeLTRB(random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
224 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
225 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
226 random->nextRangeScalar(kMinCoord, kMaxCoord)); in random_texRect()
/external/skia/src/gpu/ops/
DGrDrawAtlasOp.cpp290 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), in random_xform()
291 random->nextRangeScalar(kMinRotate, kMaxRotate), in random_xform()
292 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
293 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
294 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
295 random->nextRangeScalar(kMinExtent, kMaxExtent)); in random_xform()
303 SkRect texRect = SkRect::MakeLTRB(random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
304 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
305 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
306 random->nextRangeScalar(kMinCoord, kMaxCoord)); in random_texRect()
/external/skqp/src/gpu/gradients/
DGrLinearGradientLayout.fp52 SkPoint points[] = {{d->fRandom->nextRangeScalar(0.0f, scale),
53 d->fRandom->nextRangeScalar(0.0f, scale)},
54 {d->fRandom->nextRangeScalar(0.0f, scale),
55 d->fRandom->nextRangeScalar(0.0f, scale)}};
DGrLinearGradientLayout.cpp61 {d->fRandom->nextRangeScalar(0.0f, scale), d->fRandom->nextRangeScalar(0.0f, scale)}, in TestCreate()
62 {d->fRandom->nextRangeScalar(0.0f, scale), d->fRandom->nextRangeScalar(0.0f, scale)}}; in TestCreate()
DGrTwoPointConicalGradientLayout.cpp156 SkPoint center1 = {d->fRandom->nextRangeScalar(0.0f, scale), in TestCreate()
157 d->fRandom->nextRangeScalar(0.0f, scale)}; in TestCreate()
158 SkPoint center2 = {d->fRandom->nextRangeScalar(0.0f, scale), in TestCreate()
159 d->fRandom->nextRangeScalar(0.0f, scale)}; in TestCreate()
160 SkScalar radius1 = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate()
161 SkScalar radius2 = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate()
DGrRadialGradientLayout.fp55 SkPoint center = {d->fRandom->nextRangeScalar(0.0f, scale),
56 d->fRandom->nextRangeScalar(0.0f, scale)};
57 SkScalar radius = d->fRandom->nextRangeScalar(0.0f, scale);
DGrRadialGradientLayout.cpp63 SkPoint center = {d->fRandom->nextRangeScalar(0.0f, scale), in TestCreate()
64 d->fRandom->nextRangeScalar(0.0f, scale)}; in TestCreate()
65 SkScalar radius = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate()
/external/skia/src/gpu/gradients/
DGrLinearGradientLayout.fp52 SkPoint points[] = {{d->fRandom->nextRangeScalar(0.0f, scale),
53 d->fRandom->nextRangeScalar(0.0f, scale)},
54 {d->fRandom->nextRangeScalar(0.0f, scale),
55 d->fRandom->nextRangeScalar(0.0f, scale)}};
DGrLinearGradientLayout.cpp61 {d->fRandom->nextRangeScalar(0.0f, scale), d->fRandom->nextRangeScalar(0.0f, scale)}, in TestCreate()
62 {d->fRandom->nextRangeScalar(0.0f, scale), d->fRandom->nextRangeScalar(0.0f, scale)}}; in TestCreate()
DGrTwoPointConicalGradientLayout.cpp156 SkPoint center1 = {d->fRandom->nextRangeScalar(0.0f, scale), in TestCreate()
157 d->fRandom->nextRangeScalar(0.0f, scale)}; in TestCreate()
158 SkPoint center2 = {d->fRandom->nextRangeScalar(0.0f, scale), in TestCreate()
159 d->fRandom->nextRangeScalar(0.0f, scale)}; in TestCreate()
160 SkScalar radius1 = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate()
161 SkScalar radius2 = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate()
DGrRadialGradientLayout.fp55 SkPoint center = {d->fRandom->nextRangeScalar(0.0f, scale),
56 d->fRandom->nextRangeScalar(0.0f, scale)};
57 SkScalar radius = d->fRandom->nextRangeScalar(0.0f, scale);
DGrRadialGradientLayout.cpp63 SkPoint center = {d->fRandom->nextRangeScalar(0.0f, scale), in TestCreate()
64 d->fRandom->nextRangeScalar(0.0f, scale)}; in TestCreate()
65 SkScalar radius = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate()

1234