Home
last modified time | relevance | path

Searched refs:gRand (Results 1 – 6 of 6) sorted by relevance

/external/skia/samplecode/
DSampleAnimatedText.cpp25 SkRandom gRand; variable
137 fRotation += (1.0f + gRand.nextRangeF(-0.1f, 0.1f)); in onAnimate()
138 fScale += (fScaleInc + gRand.nextRangeF(-0.025f, 0.025f)); in onAnimate()
DSampleHairline.cpp27 static SkRandom gRand; variable
31 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), in generate_pts()
32 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h)); in generate_pts()
200 gRand.setSeed(fNow); in onDrawContent()
DSampleFuzz.cpp27 static SkRandom gRand; variable
36 return (int)floor(SkScalarToFloat(gRand.nextUScalar1()) * x); in R()
151 paint.setAlpha(gRand.nextU() & 0xFF); in do_fuzz()
DSampleXfer.cpp45 static SkRandom gRand; variable
54 fColor = (gRand.nextU() & 0x7F7F7F7F) | SkColorSetARGB(0xFF, 0, 0, 0x80); in PushButtonWig()
DSampleFilterFuzz.cpp55 static SkRandom gRand(kSeed);
62 return (int)floor(SkScalarToFloat(gRand.nextUScalar1()) * x); in R()
/external/skia/tests/
DPackBitsTest.cpp12 static SkRandom gRand; variable
21 buffer[i] = (uint8_t)((gRand.nextU() >> 8) & 0x3); in rand_fill()