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
12class QProcessEnvironment;
13
14namespace KIO
15{
16
17/**
18 * Detects whether the system has a discrete GPU.
19 */
20KIOGUI_EXPORT bool hasDiscreteGpu();
21
22/**
23 * Environment variables that make a process run with the discrete GPU.
24 */
25KIOGUI_NO_EXPORT QProcessEnvironment discreteGpuEnvironment();
26}
27
28#endif
29

source code of kio/src/gui/gpudetection_p.h