| 1 | /* |
| 2 | This file is part of the KDE project |
| 3 | SPDX-FileCopyrightText: 2023 Dave Vasilevsky <dave@vasilevsky.ca> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only |
| 6 | */ |
| 7 | #ifndef _KIO_GPUDETECTION_H_ |
| 8 | #define _KIO_GPUDETECTION_H_ |
| 9 | |
| 10 | #include "kiogui_export.h" |
| 11 | |
| 12 | class QProcessEnvironment; |
| 13 | |
| 14 | namespace KIO |
| 15 | { |
| 16 | |
| 17 | /* |
| 18 | * Detects whether the system has a discrete GPU. |
| 19 | */ |
| 20 | KIOGUI_EXPORT bool hasDiscreteGpu(); |
| 21 | |
| 22 | /* |
| 23 | * Environment variables that make a process run with the discrete GPU. |
| 24 | */ |
| 25 | KIOGUI_NO_EXPORT QProcessEnvironment discreteGpuEnvironment(); |
| 26 | } |
| 27 | |
| 28 | #endif |
| 29 | |