Searched refs:gRand (Results 1 - 7 of 7) sorted by relevance

/external/skia/samplecode/
H A DSampleAnimatedText.cpp26 SkRandom gRand; variable
138 fRotation += (1.0f + gRand.nextRangeF(-0.1f, 0.1f));
139 fScale += (fScaleInc + gRand.nextRangeF(-0.025f, 0.025f));
H A DSampleHairline.cpp32 static SkRandom gRand; variable
36 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w),
37 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h));
205 gRand.setSeed(fNow);
H A DSampleFuzz.cpp29 static SkRandom gRand; variable
38 return (int)floor(SkScalarToFloat(gRand.nextUScalar1()) * x);
153 paint.setAlpha(gRand.nextU() & 0xFF);
H A DSampleXfer.cpp48 static SkRandom gRand; variable
57 fColor = (gRand.nextU() & 0x7F7F7F7F) | SkColorSetARGB(0xFF, 0, 0, 0x80);
H A DSampleFilterFuzz.cpp57 static SkRandom gRand(kSeed);
64 return (int)floor(SkScalarToFloat(gRand.nextUScalar1()) * x);
/external/skia/tests/
H A DPackBitsTest.cpp12 static SkRandom gRand; variable
21 buffer[i] = (uint8_t)((gRand.nextU() >> 8) & 0x3);
/external/skia/src/core/
H A DSkModeColorFilter.cpp111 static SkRandom gRand; local
112 GrInvariantOutput io(GrPremulColor(gRand.nextU()), kRGBA_GrColorComponentFlags,

Completed in 129 milliseconds