File indexing completed on 2025-01-19 03:41:33
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 2023 Dave Vasilevsky <dave@vasilevsky.ca> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only 0006 */ 0007 #ifndef _KIO_GPUDETECTION_H_ 0008 #define _KIO_GPUDETECTION_H_ 0009 0010 #include "kiogui_export.h" 0011 0012 class QProcessEnvironment; 0013 0014 namespace KIO 0015 { 0016 0017 /** 0018 * Detects whether the system has a discrete GPU. 0019 */ 0020 KIOGUI_EXPORT bool hasDiscreteGpu(); 0021 0022 /** 0023 * Environment variables that make a process run with the discrete GPU. 0024 */ 0025 KIOGUI_NO_EXPORT QProcessEnvironment discreteGpuEnvironment(); 0026 } 0027 0028 #endif