/third_party/skia/src/gpu/ |
D | GrTestUtils.cpp | 44 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 …]
|
D | GrProcessorUnitTest.cpp | 55 return fViews[fRandom->nextULessThan(fViews.count())]; in randomView() 66 int idx = fRandom->nextULessThan(numAlphaOnly); in randomAlphaOnlyView() 88 uint32_t idx = data->fRandom->nextULessThan(GetFactories()->count()); in Make()
|
/third_party/flutter/skia/src/gpu/ |
D | GrTestUtils.cpp | 46 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 …]
|
D | GrTestUtils.h | 105 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()
|
/third_party/flutter/skia/bench/ |
D | HairlinePathBench.cpp | 98 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 …]
|
D | PicturePlaybackBench.cpp | 73 case kTiled: x = SkScalar(256 * rand.nextULessThan(4)); in onDraw() 74 y = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
|
/third_party/skia/bench/ |
D | HairlinePathBench.cpp | 98 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 …]
|
D | PicturePlaybackBench.cpp | 75 case kTiled: x = SkScalar(256 * rand.nextULessThan(4)); in onDraw() 76 y = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrConstColorProcessor.fp | 66 int colorPicker = d->fRandom->nextULessThan(3); 69 uint32_t a = d->fRandom->nextULessThan(0x100); 70 uint32_t r = d->fRandom->nextULessThan(a+1); 71 uint32_t g = d->fRandom->nextULessThan(a+1); 72 uint32_t b = d->fRandom->nextULessThan(a+1); 80 uint32_t c = d->fRandom->nextULessThan(0x100); 84 InputMode mode = static_cast<InputMode>(d->fRandom->nextULessThan(kInputModeCnt));
|
D | GrAlphaThresholdFragmentProcessor.fp | 70 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);
|
D | GrTextureDomain.cpp | 367 (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()
|
D | GrMagnifierEffect.fp | 76 uint32_t width = d->fRandom->nextULessThan(kMaxWidth); 77 uint32_t height = d->fRandom->nextULessThan(kMaxHeight);
|
/third_party/flutter/skia/src/gpu/effects/generated/ |
D | GrConstColorProcessor.cpp | 82 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()
|
D | GrAlphaThresholdFragmentProcessor.cpp | 116 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()
|
/third_party/skia/tests/ |
D | TDPQueueTest.cpp | 87 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()
|
/third_party/flutter/skia/tests/ |
D | TDPQueueTest.cpp | 87 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()
|
D | LListTest.cpp | 225 int insertionMethod = random.nextULessThan(numValidMethods); in test_tllist() 235 int n = random.nextULessThan(list1.count()); in test_tllist() 279 int n = random.nextULessThan(list1.count()); in test_tllist()
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrRegionOp.cpp | 195 int n = random->nextULessThan(200); in GR_DRAW_OP_TEST_DEFINE() 198 center.fX = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE() 199 center.fY = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE() 209 op = (SkRegion::Op)random->nextULessThan(SkRegion::kLastOp); in GR_DRAW_OP_TEST_DEFINE()
|
/third_party/skia/src/gpu/ops/ |
D | RegionOp.cpp | 223 int n = random->nextULessThan(200); in GR_DRAW_OP_TEST_DEFINE() 226 center.fX = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE() 227 center.fY = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE() 237 op = (SkRegion::Op)random->nextULessThan(SkRegion::kLastOp); in GR_DRAW_OP_TEST_DEFINE()
|
/third_party/flutter/skia/gm/ |
D | imageblur.cpp | 33 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw() 34 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
|
D | imagemagnifier.cpp | 44 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG() 45 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
|
/third_party/skia/gm/ |
D | imageblur.cpp | 33 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw() 34 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
|
D | runtimeimagefilter.cpp | 53 int x = rand.nextULessThan(500); in __anondd31c8590102() 54 int y = rand.nextULessThan(500); in __anondd31c8590102()
|
D | imagemagnifier.cpp | 44 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG() 45 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
|
/third_party/skia/src/gpu/effects/ |
D | GrBicubicEffect.cpp | 242 switch (d->fRandom->nextULessThan(3)) { in TestCreate() 256 switch (d->fRandom->nextULessThan(3)) { in TestCreate() 288 at = static_cast<SkAlphaType>(d->fRandom->nextULessThan(kLastEnum_SkAlphaType + 1)); in TestCreate()
|