diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-07-01 09:25:29 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-07-05 13:04:09 +0200 |
commit | a09e518f6589fff7789ad7224badf24593240711 (patch) | |
tree | 301e00ecf67769cef433a059ae76477b0b46720c /src/gui/rhi/qrhi_p.h | |
parent | 5a136716a93d27bca1e46eae98b05660d81ea1b9 (diff) |
rhi: Make it possible to query the backend name beforehand
The goal is to make it possible to implement QSGRhiSupport::backendName()
in Qt Quick with just a single line:
return QString::fromUtf8(QRhi::backendName(m_rhiBackend));
instead of duplicating the strings and the logic.
Similarly, QBackingStoreRhiSupport can now drop its apiName() helper
entirely.
Change-Id: Ia8cbb1f1243539ed4d7a98e71dcc2ed56b017e40
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhi_p.h')
-rw-r--r-- | src/gui/rhi/qrhi_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhi_p.h b/src/gui/rhi/qrhi_p.h index f825866585..6e95e4542b 100644 --- a/src/gui/rhi/qrhi_p.h +++ b/src/gui/rhi/qrhi_p.h @@ -1701,6 +1701,7 @@ public: Implementation backend() const; const char *backendName() const; + static const char *backendName(Implementation impl); QRhiDriverInfo driverInfo() const; QThread *thread() const; |