Lines Matching defs:data
45 // At the top level of the tree, provide the input FP from the test data.
83 ProcessorSmartPtr GrProcessorTestFactory<ProcessorSmartPtr>::Make(GrProcessorTestData* data) {
88 uint32_t idx = data->fRandom->nextULessThan(GetFactories()->count());
89 return MakeIdx(idx, data);
94 GrProcessorTestData* data) {
97 ProcessorSmartPtr processor = factory->fMakeProc(data);
113 const GrXPFactory* GrXPFactoryTestFactory::Get(GrProcessorTestData* data) {
118 uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1);
119 const GrXPFactory* xpf = (*GetFactories())[idx]->fGetProc(data);
178 std::unique_ptr<GrFragmentProcessor> GrProcessorUnitTest::MakeChildFP(GrProcessorTestData* data) {
181 ++data->fCurrentTreeDepth;
182 if (data->fCurrentTreeDepth > data->fMaxTreeDepth) {
189 fp = GrFragmentProcessorTestFactory::Make(data);
192 if (data->fCurrentTreeDepth < data->fMaxTreeDepth ||
199 --data->fCurrentTreeDepth;
204 GrProcessorTestData* data) {
205 return data->fRandom->nextBool() ? MakeChildFP(data) : nullptr;