Home
last modified time | relevance | path

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

/external/skia/tests/
DPictureTest.cpp77 rect->fLeft = rand.nextRangeScalar(-W, 2*W); in rand_rect()
78 rect->fTop = rand.nextRangeScalar(-H, 2*H); in rand_rect()
79 rect->fRight = rect->fLeft + rand.nextRangeScalar(0, W); in rand_rect()
80 rect->fBottom = rect->fTop + rand.nextRangeScalar(0, H); in rand_rect()
DClipStackTest.cpp842 …SkScalarFloorToScalar(SkScalarMul(kBounds.width(), r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSiz… in test_reduced_clip_stack()
843 …SkScalarFloorToScalar(SkScalarMul(kBounds.height(), r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSi… in test_reduced_clip_stack()
845 …SkPoint xy = {SkScalarFloorToScalar(r.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth)… in test_reduced_clip_stack()
846 … SkScalarFloorToScalar(r.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight))}; in test_reduced_clip_stack()
/external/skia/include/utils/
DSkRandom.h106 SkScalar nextRangeScalar(SkScalar min, SkScalar max) { in nextRangeScalar() function
259 SkScalar nextRangeScalar(SkScalar min, SkScalar max) { in nextRangeScalar() function
/external/skia/src/gpu/effects/
DGrTextureDomainEffect.cpp196 domain.fRight = random->nextRangeScalar(domain.fLeft, SK_Scalar1); in TestCreate()
198 domain.fBottom = random->nextRangeScalar(domain.fTop, SK_Scalar1); in TestCreate()
/external/skia/bench/
DPathBench.cpp251 fPoints[i].set(fRandom.nextRangeScalar(bounds->fLeft, bounds->fRight), in createData()
252 fRandom.nextRangeScalar(bounds->fTop, bounds->fBottom)); in createData()
838 size.fWidth = rand.nextRangeScalar(kQueryMin.fWidth, kQueryMax.fWidth); in onPreDraw()
839 size.fHeight = rand.nextRangeScalar(kQueryMin.fHeight, kQueryMax.fHeight); in onPreDraw()
840 xy.fX = rand.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth); in onPreDraw()
841 xy.fY = rand.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight); in onPreDraw()