sk_sp<GrGeometryProcessor> DefaultGeoProc::TestCreate(GrProcessorTestData* d) { uint32_t flags = 0; if (d->fRandom->nextBool()) { flags |= kColorAttribute_GPFlag; } if (d->fRandom->nextBool()) { flags |= kColorAttributeIsSkColor_GPFlag; } if (d->fRandom->nextBool()) { flags |= kCoverageAttribute_GPFlag; } if (d->fRandom->nextBool()) { flags |= kLocalCoordAttribute_GPFlag; } return DefaultGeoProc::Make(flags, GrRandomColor(d->fRandom), GrTest::TestColorXform(d->fRandom), GrTest::TestMatrix(d->fRandom), GrTest::TestMatrix(d->fRandom), d->fRandom->nextBool(), GrRandomCoverage(d->fRandom)); }
const GrGeometryProcessor* DefaultGeoProc::TestCreate(GrProcessorTestData* d) { uint32_t flags = 0; if (d->fRandom->nextBool()) { flags |= kColor_GPFlag; } if (d->fRandom->nextBool()) { flags |= kCoverage_GPFlag; } if (d->fRandom->nextBool()) { flags |= kLocalCoord_GPFlag; } if (d->fRandom->nextBool()) { flags |= kTransformedLocalCoord_GPFlag; } return DefaultGeoProc::Create(flags, GrRandomColor(d->fRandom), GrTest::TestMatrix(d->fRandom), GrTest::TestMatrix(d->fRandom), d->fRandom->nextBool(), d->fRandom->nextBool(), GrRandomCoverage(d->fRandom)); }