LibreOffice Module vcl (master) 1
|
Classes | |
struct | DriverInfo |
struct | InvalidFileException |
class | Parser |
Enumerations | |
enum class | VersionType { OpenGL , Vulkan } |
enum | DeviceVendor { VendorAll , VendorIntel , VendorNVIDIA , VendorAMD , VendorMicrosoft } |
enum | OperatingSystem { DRIVER_OS_UNKNOWN = 0 , DRIVER_OS_WINDOWS_FIRST , DRIVER_OS_WINDOWS_7 = DRIVER_OS_WINDOWS_FIRST , DRIVER_OS_WINDOWS_8 , DRIVER_OS_WINDOWS_8_1 , DRIVER_OS_WINDOWS_10 , DRIVER_OS_WINDOWS_LAST = DRIVER_OS_WINDOWS_10 , DRIVER_OS_WINDOWS_ALL , DRIVER_OS_LINUX , DRIVER_OS_OSX_FIRST , DRIVER_OS_OSX_10_5 = DRIVER_OS_OSX_FIRST , DRIVER_OS_OSX_10_6 , DRIVER_OS_OSX_10_7 , DRIVER_OS_OSX_10_8 , DRIVER_OS_OSX_LAST = DRIVER_OS_OSX_10_8 , DRIVER_OS_OSX_ALL , DRIVER_OS_ANDROID , DRIVER_OS_ALL } |
enum | VersionComparisonOp { DRIVER_LESS_THAN , DRIVER_LESS_THAN_OR_EQUAL , DRIVER_GREATER_THAN , DRIVER_GREATER_THAN_OR_EQUAL , DRIVER_EQUAL , DRIVER_NOT_EQUAL , DRIVER_BETWEEN_EXCLUSIVE , DRIVER_BETWEEN_INCLUSIVE , DRIVER_BETWEEN_INCLUSIVE_START , DRIVER_COMPARISON_IGNORED } |
Functions | |
static OperatingSystem | getOperatingSystem (std::string_view rString) |
static VersionComparisonOp | getComparison (std::string_view rString) |
static OUString | GetVendorId (std::string_view rString) |
OUString | GetVendorId (DeviceVendor id) |
DeviceVendor | GetVendorFromId (uint32_t id) |
Returns vendor for the given vendor ID, or VendorAll if not known. More... | |
std::string_view | GetVendorNameFromId (uint32_t id) |
static void | PadDriverDecimal (char *aString) |
static bool | SplitDriverVersion (const char *aSource, char *aAStr, char *aBStr, char *aCStr, char *aDStr, VersionType versionType) |
static bool | ParseDriverVersion (std::u16string_view aVersion, uint64_t &rNumericVersion, VersionType versionType) |
static OperatingSystem | getOperatingSystem () |
bool | FindBlocklistedDeviceInList (std::vector< DriverInfo > &aDeviceInfos, VersionType versionType, std::u16string_view sDriverVersion, std::u16string_view sAdapterVendorID, OUString const &sAdapterDeviceID, OperatingSystem system, const OUString &blocklistURL) |
bool | IsDeviceBlocked (const OUString &blocklistURL, VersionType versionType, std::u16string_view driverVersion, std::u16string_view vendorId, const OUString &deviceId) |
uint64_t | OpenGLVersion (uint32_t a, uint32_t b, uint32_t c, uint32_t d) |
Variables | |
const uint64_t | allDriverVersions = ~(uint64_t(0)) |
const int | DeviceVendorMax = VendorMicrosoft + 1 |
Enumerator | |
---|---|
VendorAll | |
VendorIntel | |
VendorNVIDIA | |
VendorAMD | |
VendorMicrosoft |
Definition at line 36 of file driverblocklist.hxx.
Definition at line 57 of file driverblocklist.hxx.
Definition at line 79 of file driverblocklist.hxx.
|
strong |
Enumerator | |
---|---|
OpenGL | |
Vulkan |
Definition at line 22 of file driverblocklist.hxx.
bool VCL_DLLPUBLIC DriverBlocklist::FindBlocklistedDeviceInList | ( | std::vector< DriverInfo > & | aDeviceInfos, |
VersionType | versionType, | ||
std::u16string_view | sDriverVersion, | ||
std::u16string_view | sAdapterVendorID, | ||
OUString const & | sAdapterDeviceID, | ||
OperatingSystem | system, | ||
const OUString & | blocklistURL | ||
) |
Definition at line 604 of file driverblocklist.cxx.
References allDriverVersions, DRIVER_BETWEEN_EXCLUSIVE, DRIVER_BETWEEN_INCLUSIVE, DRIVER_BETWEEN_INCLUSIVE_START, DRIVER_COMPARISON_IGNORED, DRIVER_EQUAL, DRIVER_GREATER_THAN, DRIVER_GREATER_THAN_OR_EQUAL, DRIVER_LESS_THAN, DRIVER_LESS_THAN_OR_EQUAL, DRIVER_NOT_EQUAL, DRIVER_OS_ALL, DRIVER_OS_OSX_ALL, DRIVER_OS_OSX_FIRST, DRIVER_OS_OSX_LAST, DRIVER_OS_WINDOWS_ALL, DRIVER_OS_WINDOWS_FIRST, DRIVER_OS_WINDOWS_LAST, GetVendorId(), i, match(), ParseDriverVersion(), SAL_INFO, SAL_WARN, and VendorAll.
Referenced by IsDeviceBlocked().
|
static |
Definition at line 58 of file driverblocklist.cxx.
References DRIVER_BETWEEN_EXCLUSIVE, DRIVER_BETWEEN_INCLUSIVE, DRIVER_BETWEEN_INCLUSIVE_START, DRIVER_EQUAL, DRIVER_GREATER_THAN, DRIVER_GREATER_THAN_OR_EQUAL, DRIVER_LESS_THAN, DRIVER_LESS_THAN_OR_EQUAL, and DRIVER_NOT_EQUAL.
Referenced by DriverBlocklist::Parser::handleEntry().
|
static |
Definition at line 533 of file driverblocklist.cxx.
References DRIVER_OS_LINUX, DRIVER_OS_UNKNOWN, DRIVER_OS_WINDOWS_10, DRIVER_OS_WINDOWS_7, DRIVER_OS_WINDOWS_8, and DRIVER_OS_WINDOWS_8_1.
|
static |
Definition at line 27 of file driverblocklist.cxx.
References DRIVER_OS_ALL, DRIVER_OS_ANDROID, DRIVER_OS_LINUX, DRIVER_OS_OSX_10_5, DRIVER_OS_OSX_10_6, DRIVER_OS_OSX_10_7, DRIVER_OS_OSX_10_8, DRIVER_OS_OSX_ALL, DRIVER_OS_UNKNOWN, DRIVER_OS_WINDOWS_10, DRIVER_OS_WINDOWS_7, DRIVER_OS_WINDOWS_8, DRIVER_OS_WINDOWS_8_1, and DRIVER_OS_WINDOWS_ALL.
Referenced by DriverBlocklist::Parser::handleEntry(), and IsDeviceBlocked().
VCL_DLLPUBLIC DeviceVendor DriverBlocklist::GetVendorFromId | ( | uint32_t | id | ) |
Returns vendor for the given vendor ID, or VendorAll if not known.
Definition at line 149 of file driverblocklist.cxx.
References VendorAll, VendorAMD, VendorIntel, VendorMicrosoft, and VendorNVIDIA.
Referenced by SkiaHelper::getVendor().
OUString VCL_DLLPUBLIC DriverBlocklist::GetVendorId | ( | DeviceVendor | id | ) |
Definition at line 129 of file driverblocklist.cxx.
References DeviceVendorMax, VendorAll, VendorAMD, VendorIntel, VendorMicrosoft, and VendorNVIDIA.
|
static |
Definition at line 100 of file driverblocklist.cxx.
Referenced by FindBlocklistedDeviceInList(), and DriverBlocklist::Parser::handleEntry().
VCL_DLLPUBLIC std::string_view DriverBlocklist::GetVendorNameFromId | ( | uint32_t | id | ) |
Definition at line 166 of file driverblocklist.cxx.
VCL_DLLPUBLIC bool DriverBlocklist::IsDeviceBlocked | ( | const OUString & | blocklistURL, |
VersionType | versionType, | ||
std::u16string_view | driverVersion, | ||
std::u16string_view | vendorId, | ||
const OUString & | deviceId | ||
) |
Definition at line 709 of file driverblocklist.cxx.
References FindBlocklistedDeviceInList(), getOperatingSystem(), parser, SAL_WARN, and SkiaHelper::vendorId.
Referenced by WinOpenGLDeviceInfo::FindBlocklistedDeviceInList().
|
inline |
Definition at line 155 of file driverblocklist.hxx.
References a, d, and GFX_DRIVER_VERSION.
|
static |
Definition at line 211 of file driverblocklist.cxx.
References i.
Referenced by ParseDriverVersion().
|
static |
Definition at line 275 of file driverblocklist.cxx.
References a, aStr, d, GFX_DRIVER_VERSION, OpenGL, OUStringToOString(), PadDriverDecimal(), SplitDriverVersion(), and Vulkan.
Referenced by FindBlocklistedDeviceInList(), and DriverBlocklist::Parser::getVersion().
|
static |
Definition at line 228 of file driverblocklist.cxx.
References i, SAL_N_ELEMENTS, and Vulkan.
Referenced by ParseDriverVersion().
const uint64_t DriverBlocklist::allDriverVersions = ~(uint64_t(0)) |
Definition at line 577 of file driverblocklist.cxx.
Referenced by FindBlocklistedDeviceInList().
const int DriverBlocklist::DeviceVendorMax = VendorMicrosoft + 1 |
Definition at line 44 of file driverblocklist.hxx.
Referenced by GetVendorId().