Home
last modified time | relevance | path

Searched refs:nextULessThan (Results 1 – 25 of 113) sorted by relevance

12345

/external/skqp/bench/
DHairlinePathBench.cpp98 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
99 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
100 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
130 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
131 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
132 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
163 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
164 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
165 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
198 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
[all …]
/external/skia/bench/
DHairlinePathBench.cpp98 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
99 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
100 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
130 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
131 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
132 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
163 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
164 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
165 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
198 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
[all …]
DPicturePlaybackBench.cpp73 case kTiled: x = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
74 y = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
/external/skia/src/gpu/
DGrTestUtils.cpp46 return gMatrices[random->nextULessThan(count)]; in test_matrix()
48 return gMatrices[count - 1 - random->nextULessThan(kPerspectiveCount)]; in test_matrix()
51 return gMatrices[random->nextULessThan(count - kPerspectiveCount)]; in test_matrix()
81 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles()
107 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect()
119 wrapModes[0] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
120 wrapModes[1] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
134 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect()
146 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare()
164 return gRRect[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRRect)))]; in TestRRectSimple()
[all …]
DGrTestUtils.h105 ColorMode colorMode = ColorMode(random->nextULessThan(kLast_ColorMode + 1)); in GrRandomColor()
115 color = GrColorPackRGBA(random->nextULessThan(256), in GrRandomColor()
116 random->nextULessThan(256), in GrRandomColor()
117 random->nextULessThan(256), in GrRandomColor()
121 uint8_t alpha = random->nextULessThan(256); in GrRandomColor()
140 CoverageMode colorMode = CoverageMode(random->nextULessThan(kLast_CoverageMode + 1)); in GrRandomCoverage()
150 coverage = random->nextULessThan(256); in GrRandomCoverage()
/external/skqp/src/gpu/
DGrTestUtils.cpp44 return gMatrices[random->nextULessThan(count)]; in test_matrix()
46 return gMatrices[count - 1 - random->nextULessThan(kPerspectiveCount)]; in test_matrix()
49 return gMatrices[random->nextULessThan(count - kPerspectiveCount)]; in test_matrix()
79 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles()
105 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect()
117 wrapModes[0] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
118 wrapModes[1] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
132 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect()
144 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare()
162 return gRRect[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRRect)))]; in TestRRectSimple()
[all …]
DGrTestUtils.h105 ColorMode colorMode = ColorMode(random->nextULessThan(kLast_ColorMode + 1)); in GrRandomColor()
115 color = GrColorPackRGBA(random->nextULessThan(256), in GrRandomColor()
116 random->nextULessThan(256), in GrRandomColor()
117 random->nextULessThan(256), in GrRandomColor()
121 uint8_t alpha = random->nextULessThan(256); in GrRandomColor()
140 CoverageMode colorMode = CoverageMode(random->nextULessThan(kLast_CoverageMode + 1)); in GrRandomCoverage()
150 coverage = random->nextULessThan(256); in GrRandomCoverage()
/external/skqp/src/gpu/effects/
DGrConstColorProcessor.fp67 int colorPicker = d->fRandom->nextULessThan(3);
70 uint32_t a = d->fRandom->nextULessThan(0x100);
71 uint32_t r = d->fRandom->nextULessThan(a+1);
72 uint32_t g = d->fRandom->nextULessThan(a+1);
73 uint32_t b = d->fRandom->nextULessThan(a+1);
81 uint32_t c = d->fRandom->nextULessThan(0x100);
85 InputMode mode = static_cast<InputMode>(d->fRandom->nextULessThan(kInputModeCnt));
DGrConstColorProcessor.cpp82 int colorPicker = d->fRandom->nextULessThan(3); in TestCreate()
85 uint32_t a = d->fRandom->nextULessThan(0x100); in TestCreate()
86 uint32_t r = d->fRandom->nextULessThan(a + 1); in TestCreate()
87 uint32_t g = d->fRandom->nextULessThan(a + 1); in TestCreate()
88 uint32_t b = d->fRandom->nextULessThan(a + 1); in TestCreate()
96 uint32_t c = d->fRandom->nextULessThan(0x100); in TestCreate()
100 InputMode mode = static_cast<InputMode>(d->fRandom->nextULessThan(kInputModeCnt)); in TestCreate()
DGrAlphaThresholdFragmentProcessor.fp70 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth);
71 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight);
72 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width);
73 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height);
DGrAlphaThresholdFragmentProcessor.cpp116 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth); in TestCreate()
117 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight); in TestCreate()
118 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width); in TestCreate()
119 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
DGrTextureDomain.cpp367 (GrTextureDomain::Mode) d->fRandom->nextULessThan(GrTextureDomain::kModeCount); in TestCreate()
369 (GrTextureDomain::Mode) d->fRandom->nextULessThan(GrTextureDomain::kModeCount); in TestCreate()
493 subset.fLeft = d->fRandom->nextULessThan(proxy->width() - 1); in TestCreate()
495 subset.fTop = d->fRandom->nextULessThan(proxy->height() - 1); in TestCreate()
498 pt.fX = d->fRandom->nextULessThan(2048); in TestCreate()
499 pt.fY = d->fRandom->nextULessThan(2048); in TestCreate()
/external/skia/src/gpu/effects/
DGrConstColorProcessor.fp67 int colorPicker = d->fRandom->nextULessThan(3);
70 uint32_t a = d->fRandom->nextULessThan(0x100);
71 uint32_t r = d->fRandom->nextULessThan(a+1);
72 uint32_t g = d->fRandom->nextULessThan(a+1);
73 uint32_t b = d->fRandom->nextULessThan(a+1);
81 uint32_t c = d->fRandom->nextULessThan(0x100);
85 InputMode mode = static_cast<InputMode>(d->fRandom->nextULessThan(kInputModeCnt));
DGrConstColorProcessor.cpp82 int colorPicker = d->fRandom->nextULessThan(3); in TestCreate()
85 uint32_t a = d->fRandom->nextULessThan(0x100); in TestCreate()
86 uint32_t r = d->fRandom->nextULessThan(a + 1); in TestCreate()
87 uint32_t g = d->fRandom->nextULessThan(a + 1); in TestCreate()
88 uint32_t b = d->fRandom->nextULessThan(a + 1); in TestCreate()
96 uint32_t c = d->fRandom->nextULessThan(0x100); in TestCreate()
100 InputMode mode = static_cast<InputMode>(d->fRandom->nextULessThan(kInputModeCnt)); in TestCreate()
DGrAlphaThresholdFragmentProcessor.fp70 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth);
71 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight);
72 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width);
73 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height);
DGrAlphaThresholdFragmentProcessor.cpp116 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth); in TestCreate()
117 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight); in TestCreate()
118 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width); in TestCreate()
119 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
DGrTextureDomain.cpp367 (GrTextureDomain::Mode) d->fRandom->nextULessThan(GrTextureDomain::kModeCount); in TestCreate()
369 (GrTextureDomain::Mode) d->fRandom->nextULessThan(GrTextureDomain::kModeCount); in TestCreate()
493 subset.fLeft = d->fRandom->nextULessThan(proxy->width() - 1); in TestCreate()
495 subset.fTop = d->fRandom->nextULessThan(proxy->height() - 1); in TestCreate()
498 pt.fX = d->fRandom->nextULessThan(2048); in TestCreate()
499 pt.fY = d->fRandom->nextULessThan(2048); in TestCreate()
/external/skqp/tests/
DTDPQueueTest.cpp87 int count = random.nextULessThan(100); in random_test()
121 unsigned action = random.nextULessThan(3); in random_test()
133 item = random.nextULessThan(count); in random_test()
142 item = random.nextULessThan(count); in random_test()
160 int count = random.nextULessThan(100); in sort_test()
/external/skia/tests/
DTDPQueueTest.cpp87 int count = random.nextULessThan(100); in random_test()
121 unsigned action = random.nextULessThan(3); in random_test()
133 item = random.nextULessThan(count); in random_test()
142 item = random.nextULessThan(count); in random_test()
160 int count = random.nextULessThan(100); in sort_test()
/external/skia/gm/
Dimageblur.cpp26 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw()
27 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
Dimagemagnifier.cpp32 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG()
33 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
/external/skqp/gm/
Dimageblur.cpp26 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw()
27 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
Dimagemagnifier.cpp32 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG()
33 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
/external/skia/src/gpu/ops/
DGrRegionOp.cpp194 int n = random->nextULessThan(200); in GR_DRAW_OP_TEST_DEFINE()
197 center.fX = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE()
198 center.fY = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE()
208 op = (SkRegion::Op)random->nextULessThan(SkRegion::kLastOp); in GR_DRAW_OP_TEST_DEFINE()
/external/skqp/src/gpu/ops/
DGrRegionOp.cpp188 int n = random->nextULessThan(200); in GR_DRAW_OP_TEST_DEFINE()
191 center.fX = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE()
192 center.fY = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE()
202 op = (SkRegion::Op)random->nextULessThan(SkRegion::kLastOp); in GR_DRAW_OP_TEST_DEFINE()

12345