Lines Matching refs:Factory
440 template<typename Factory>
441 static const Factory& selectFactory (const tcu::FactoryRegistry<Factory>& registry, const char* objectTypeName, const char* cmdLineArg)
445 const Factory* factory = registry.getFactoryByName(cmdLineArg);
447 if (factory)
448 return *factory;
462 TCU_THROW(NotSupportedError, (string("No factory supporting EGL '") + objectTypeName + "' type").c_str());
470 const NativeWindowFactory& selectNativeWindowFactory (const NativeDisplayFactory& factory, const tcu::CommandLine& cmdLine)
472 return selectFactory(factory.getNativeWindowRegistry(), "window", cmdLine.getEGLWindowType());
475 const NativePixmapFactory& selectNativePixmapFactory (const NativeDisplayFactory& factory, const tcu::CommandLine& cmdLine)
477 return selectFactory(factory.getNativePixmapRegistry(), "pixmap", cmdLine.getEGLPixmapType());