Home | History | Annotate | Download | only in tests

Lines Matching defs:random

149                                                                  SkRandom* random,
151 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin
153 int sampleCnt = random->nextBool() ? caps->getSampleCount(2, kRGBA_8888_GrPixelConfig) : 1;
199 // Also choose a random xfer mode.
250 static void set_random_state(GrPaint* paint, SkRandom* random) {
251 if (random->nextBool()) {
254 if (random->nextBool()) {
298 SkRandom random;
301 // setup random render target(can fail)
303 context, &random, context->caps()));
310 GrProcessorTestData ptd(&random, context, renderTargetContext.get(), proxies);
313 set_random_state(&paint, &random);
314 GrDrawRandomOp(&random, renderTargetContext.get(), std::move(paint));
335 GrProcessorTestData ptd(&random, context, renderTargetContext.get(), proxies);
342 GrDrawRandomOp(&random, renderTargetContext.get(), std::move(paint));