Home
last modified time | relevance | path

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

123

/third_party/skia/gm/
Dbeziers.cpp24 auto a = rand.nextRangeScalar(0,W), in rnd_quad()
25 b = rand.nextRangeScalar(0,H); in rnd_quad()
30 auto c = rand.nextRangeScalar(W/4, W), in rnd_quad()
31 d = rand.nextRangeScalar( 0, H), in rnd_quad()
32 e = rand.nextRangeScalar( 0, W), in rnd_quad()
33 f = rand.nextRangeScalar(H/4, H); in rnd_quad()
37 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_quad()
45 auto a = rand.nextRangeScalar(0,W), in rnd_cubic()
46 b = rand.nextRangeScalar(0,H); in rnd_cubic()
51 auto c = rand.nextRangeScalar(W/4, W), in rnd_cubic()
[all …]
Dsimplerect.cpp44 SkScalar x = rand.nextRangeScalar(min, max); in onDraw()
45 SkScalar y = rand.nextRangeScalar(min, max); in onDraw()
46 SkScalar w = rand.nextRangeScalar(0, size); in onDraw()
47 SkScalar h = rand.nextRangeScalar(0, size); in onDraw()
Dvariedtext.cpp88 fPtSizes[i] = random.nextRangeScalar(kMinPtSize, kMaxPtSize); in onOnceBeforeDraw()
104 fOffsets[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); in onOnceBeforeDraw()
105 fOffsets[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom); in onOnceBeforeDraw()
/third_party/flutter/skia/gm/
Dbeziers.cpp24 auto a = rand.nextRangeScalar(0,W), in rnd_quad()
25 b = rand.nextRangeScalar(0,H); in rnd_quad()
28 auto c = rand.nextRangeScalar(W/4, W), in rnd_quad()
29 d = rand.nextRangeScalar( 0, H), in rnd_quad()
30 e = rand.nextRangeScalar( 0, W), in rnd_quad()
31 f = rand.nextRangeScalar(H/4, H); in rnd_quad()
35 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_quad()
42 auto a = rand.nextRangeScalar(0,W), in rnd_cubic()
43 b = rand.nextRangeScalar(0,H); in rnd_cubic()
46 auto c = rand.nextRangeScalar(W/4, W), in rnd_cubic()
[all …]
Dsimplerect.cpp44 SkScalar x = rand.nextRangeScalar(min, max); in onDraw()
45 SkScalar y = rand.nextRangeScalar(min, max); in onDraw()
46 SkScalar w = rand.nextRangeScalar(0, size); in onDraw()
47 SkScalar h = rand.nextRangeScalar(0, size); in onDraw()
Dvariedtext.cpp88 fPtSizes[i] = random.nextRangeScalar(kMinPtSize, kMaxPtSize); in onOnceBeforeDraw()
106 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); in onOnceBeforeDraw()
107 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom); in onOnceBeforeDraw()
/third_party/skia/bench/
DPicturePlaybackBench.cpp56 SkScalar x = rand.nextRangeScalar(0, 1024), in onDelayedSetup()
57 y = rand.nextRangeScalar(0, 1024), in onDelayedSetup()
58 w = rand.nextRangeScalar(0, 128), in onDelayedSetup()
59 h = rand.nextRangeScalar(0, 128); in onDelayedSetup()
78 case kRandom: x = rand.nextRangeScalar(0, 768); in onDraw()
79 y = rand.nextRangeScalar(0, 768); in onDraw()
DBlendmodeBench.cpp60 font.setSize(random.nextRangeScalar(12, 96)); in onDraw()
61 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth), in onDraw()
62 y = random.nextRangeScalar(0, (SkScalar)size.fHeight); in onDraw()
72 SkScalar w = random.nextRangeScalar(50, 100); in onDraw()
73 SkScalar h = random.nextRangeScalar(50, 100); in onDraw()
DGeometryBench.cpp55 SkScalar x = rand.nextRangeScalar(min, max); in onDelayedSetup()
56 SkScalar y = rand.nextRangeScalar(min, max); in onDelayedSetup()
57 SkScalar w = rand.nextRangeScalar(min, max); in onDelayedSetup()
58 SkScalar h = rand.nextRangeScalar(min, max); in onDelayedSetup()
DGameBench.cpp173 fSaved[fNumSaved][0] = transRand.nextRangeScalar(0.0f, maxTransX); in onDraw()
174 fSaved[fNumSaved][1] = transRand.nextRangeScalar(0.0f, maxTransY); in onDraw()
184 fSaved[fNumSaved][2] = scaleRand.nextRangeScalar(0.5f, 1.5f); in onDraw()
187 fSaved[fNumSaved][2] = rotRand.nextRangeScalar(0.0f, 360.0f); in onDraw()
/third_party/flutter/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()
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()
DGameBench.cpp173 fSaved[fNumSaved][0] = transRand.nextRangeScalar(0.0f, maxTransX); in onDraw()
174 fSaved[fNumSaved][1] = transRand.nextRangeScalar(0.0f, maxTransY); in onDraw()
184 fSaved[fNumSaved][2] = scaleRand.nextRangeScalar(0.5f, 1.5f); in onDraw()
187 fSaved[fNumSaved][2] = rotRand.nextRangeScalar(0.0f, 360.0f); in onDraw()
/third_party/skia/docs/examples/
DOctopus_Generator_Animated.cpp26 float x = rand.nextRangeScalar(0, 256); in draw()
27 float y = rand.nextRangeScalar(0, 256); in draw()
28 float s = rand.nextRangeScalar(6, 12); in draw()
30 float radius = rand.nextRangeScalar(0, 40); in draw()
31 float angle = (rand.nextRangeScalar(0, 1) + frame) * 6.28319; in draw()
DOctopus_Generator.cpp26 paintOctopus(rand.nextRangeScalar(0, 256), rand.nextRangeScalar(0, 256), in draw()
27 rand.nextRangeScalar(6, 12), rand.nextU() | 0xFF0000000, canvas); in draw()
/third_party/flutter/skia/src/gpu/ops/
DGrDrawAtlasOp.cpp291 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), in random_xform()
292 random->nextRangeScalar(kMinRotate, kMaxRotate), 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()
296 random->nextRangeScalar(kMinExtent, kMaxExtent)); in random_xform()
304 SkRect texRect = SkRect::MakeLTRB(random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
305 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
306 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
307 random->nextRangeScalar(kMinCoord, kMaxCoord)); in random_texRect()
/third_party/skia/src/gpu/ops/
DDrawAtlasOp.cpp339 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), in random_xform()
340 random->nextRangeScalar(kMinRotate, kMaxRotate), in random_xform()
341 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
342 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
343 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform()
344 random->nextRangeScalar(kMinExtent, kMaxExtent)); in random_xform()
352 SkRect texRect = SkRect::MakeLTRB(random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
353 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
354 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect()
355 random->nextRangeScalar(kMinCoord, kMaxCoord)); in random_texRect()
/third_party/flutter/skia/src/gpu/gradients/generated/
DGrLinearGradientLayout.cpp63 {d->fRandom->nextRangeScalar(0.0f, scale), d->fRandom->nextRangeScalar(0.0f, scale)}, in TestCreate()
64 {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.cpp65 SkPoint center = {d->fRandom->nextRangeScalar(0.0f, scale), in TestCreate()
66 d->fRandom->nextRangeScalar(0.0f, scale)}; in TestCreate()
67 SkScalar radius = d->fRandom->nextRangeScalar(0.0f, scale); in TestCreate()
/third_party/flutter/skia/src/gpu/gradients/
DGrLinearGradientLayout.fp59 SkPoint points[] = {{d->fRandom->nextRangeScalar(0.0f, scale),
60 d->fRandom->nextRangeScalar(0.0f, scale)},
61 {d->fRandom->nextRangeScalar(0.0f, scale),
62 d->fRandom->nextRangeScalar(0.0f, scale)}};
DGrRadialGradientLayout.fp56 SkPoint center = {d->fRandom->nextRangeScalar(0.0f, scale),
57 d->fRandom->nextRangeScalar(0.0f, scale)};
58 SkScalar radius = d->fRandom->nextRangeScalar(0.0f, scale);
DGrTwoPointConicalGradientLayout.fp231 SkPoint center1 = {d->fRandom->nextRangeScalar(0.0f, scale),
232 d->fRandom->nextRangeScalar(0.0f, scale)};
233 SkPoint center2 = {d->fRandom->nextRangeScalar(0.0f, scale),
234 d->fRandom->nextRangeScalar(0.0f, scale)};
235 SkScalar radius1 = d->fRandom->nextRangeScalar(0.0f, scale);
236 SkScalar radius2 = d->fRandom->nextRangeScalar(0.0f, scale);
/third_party/flutter/skia/src/gpu/effects/generated/
DGrCircleEffect.cpp112 center.fX = testData->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate()
113 center.fY = testData->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate()

123