Home
last modified time | relevance | path

Searched refs:GetFactories (Results 1 – 6 of 6) sorted by relevance

/external/skia/src/gpu/
DGrProcessorUnitTest.cpp78 GetFactories()->push_back(this); in GrProcessorTestFactory()
84 if (GetFactories()->count() == 0) { in Make()
87 uint32_t idx = data->fRandom->nextULessThan(GetFactories()->count()); in Make()
94 SkASSERT(idx < GetFactories()->count()); in MakeIdx()
95 GrProcessorTestFactory<ProcessorSmartPtr>* factory = (*GetFactories())[idx]; in MakeIdx()
105 return GetFactories()->count(); in Count()
109 GetFactories()->push_back(this); in GrXPFactoryTestFactory()
114 if (GetFactories()->count() == 0) { in Get()
117 uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1); in Get()
118 const GrXPFactory* xpf = (*GetFactories())[idx]->fGetProc(data); in Get()
[all …]
DGrProcessorUnitTest.h108 static SkTArray<GrProcessorTestFactory<ProcessorSmartPtr>*, true>* GetFactories();
128 static SkTArray<GrXPFactoryTestFactory*, true>* GetFactories();
/external/skqp/src/gpu/
DGrProcessor.cpp39 SkTArray<GrFragmentProcessorTestFactory*, true>* GrFragmentProcessorTestFactory::GetFactories() { in GetFactories() function in GrFragmentProcessorTestFactory
45 SkTArray<GrGeometryProcessorTestFactory*, true>* GrGeometryProcessorTestFactory::GetFactories() { in GetFactories() function in GrGeometryProcessorTestFactory
50 SkTArray<GrXPFactoryTestFactory*, true>* GrXPFactoryTestFactory::GetFactories() { in GetFactories() function in GrXPFactoryTestFactory
66 if (kFPFactoryCount != GetFactories()->count()) { in VerifyFactoryCount()
68 kFPFactoryCount, GetFactories()->count()); in VerifyFactoryCount()
75 if (kGPFactoryCount != GetFactories()->count()) { in VerifyFactoryCount()
77 kGPFactoryCount, GetFactories()->count()); in VerifyFactoryCount()
83 if (kXPFactoryCount != GetFactories()->count()) { in VerifyFactoryCount()
85 kXPFactoryCount, GetFactories()->count()); in VerifyFactoryCount()
DGrProcessorUnitTest.h89 GetFactories()->push_back(this); in GrProcessorTestFactory()
95 SkASSERT(GetFactories()->count()); in Make()
96 uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1); in Make()
101 static int Count() { return GetFactories()->count(); } in Count()
105 GrProcessorTestFactory<ProcessorSmartPtr>* factory = (*GetFactories())[idx]; in MakeIdx()
119 static SkTArray<GrProcessorTestFactory<ProcessorSmartPtr>*, true>* GetFactories();
129 GrXPFactoryTestFactory(GetFn* getProc) : fGetProc(getProc) { GetFactories()->push_back(this); } in GrXPFactoryTestFactory()
133 SkASSERT(GetFactories()->count()); in Get()
134 uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1); in Get()
135 const GrXPFactory* xpf = (*GetFactories())[idx]->fGetProc(data); in Get()
[all …]
/external/tensorflow/tensorflow/c/eager/
Dc_api_unified_experimental.cc37 static FactoriesMap& GetFactories() { in GetFactories() function
45 assert((!GetFactories().count(name)) || in RegisterTracingEngineFactory()
46 (GetFactories()[name] == factory) && in RegisterTracingEngineFactory()
48 GetFactories()[name] = factory; in RegisterTracingEngineFactory()
52 auto entry = GetFactories().find(name); in SetDefaultTracingEngine()
53 if (entry != GetFactories().end()) { in SetDefaultTracingEngine()
54 default_factory = GetFactories().find(name)->second; in SetDefaultTracingEngine()
62 for (const auto& factory : GetFactories()) in SetDefaultTracingEngine()
/external/tensorflow/tensorflow/core/profiler/lib/
Dprofiler_factory.cc32 std::vector<ProfilerFactory>* GetFactories() TF_EXCLUSIVE_LOCKS_REQUIRED(mu) { in GetFactories() function
41 GetFactories()->push_back(factory); in RegisterProfilerFactory()
48 for (auto factory : *GetFactories()) { in CreateProfilers()