Home
last modified time | relevance | path

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

/external/skia/tests/
DPackBitsTest.cpp17 static SkRandom gRand; variable
20 buffer[i] = (uint16_t)gRand.nextU(); in rand_fill()
70 buffer[i] = (uint8_t)((gRand.nextU() >> 8) & 0x3); in rand_fill()
115 size_t skip = gRand.nextU() % size; in test_pack8()
116 size_t write = gRand.nextU() % size; in test_pack8()
/external/chromium_org/third_party/skia/tests/
DPackBitsTest.cpp17 static SkRandom gRand; variable
20 buffer[i] = (uint16_t)gRand.nextU(); in rand_fill()
70 buffer[i] = (uint8_t)((gRand.nextU() >> 8) & 0x3); in rand_fill()
115 size_t skip = gRand.nextU() % size; in test_pack8()
116 size_t write = gRand.nextU() % size; in test_pack8()
/external/chromium_org/third_party/skia/samplecode/
DSampleHairline.cpp31 static SkRandom gRand; variable
49 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), in generate_pts()
50 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h)); in generate_pts()
221 gRand.setSeed(fNow); in onDrawContent()
DSampleFuzz.cpp29 static SkRandom gRand; variable
38 return (int)floor(SkScalarToFloat(gRand.nextUScalar1()) * x); in R()
153 paint.setAlpha(gRand.nextU() & 0xFF); in do_fuzz()
DSampleFilterFuzz.cpp44 static SkRandom gRand(kSeed);
51 return (int)floor(SkScalarToFloat(gRand.nextUScalar1()) * x); in R()
DSampleText.cpp66 static SkRandom gRand; variable
/external/skia/samplecode/
DSampleHairline.cpp31 static SkRandom gRand; variable
49 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), in generate_pts()
50 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h)); in generate_pts()
221 gRand.setSeed(fNow); in onDrawContent()
DSampleFuzz.cpp29 static SkRandom gRand; variable
38 return (int)floor(SkScalarToFloat(gRand.nextUScalar1()) * x); in R()
153 paint.setAlpha(gRand.nextU() & 0xFF); in do_fuzz()
DSampleFilterFuzz.cpp44 static SkRandom gRand(kSeed);
51 return (int)floor(SkScalarToFloat(gRand.nextUScalar1()) * x); in R()
DSampleText.cpp66 static SkRandom gRand; variable