summaryrefslogtreecommitdiff
path: root/src/webenginequick/api/qtwebenginequickglobal.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2023-03-15 15:07:19 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2023-04-12 12:13:57 +0200
commitcceda0895b3aca208e37669b2acb38c01e9f1774 (patch)
tree1a28f9521c00b1fdb6be66bc7a423b1086ce06bf /src/webenginequick/api/qtwebenginequickglobal.cpp
parent6cfbef4474d2cb15fec37103c3609da919f8a4ca (diff)
downloadqtwebengine-cceda0895b3aca208e37669b2acb38c01e9f1774.tar.gz
Rework painting integration and support Metal RHI over ANGLE
Move graphics details into compositor, and add support for a native buffer mode uses ANGLE on the Chromium side. The initially support is for Metal. Pick-to: 6.5 Fixes: QTBUG-112282 Task-number: QTBUG-112280 Change-Id: I066ba1d3e72508e047d259ae5797659d45335fb2 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/webenginequick/api/qtwebenginequickglobal.cpp')
-rw-r--r--src/webenginequick/api/qtwebenginequickglobal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webenginequick/api/qtwebenginequickglobal.cpp b/src/webenginequick/api/qtwebenginequickglobal.cpp
index b16305dae..60f7991c8 100644
--- a/src/webenginequick/api/qtwebenginequickglobal.cpp
+++ b/src/webenginequick/api/qtwebenginequickglobal.cpp
@@ -47,7 +47,7 @@ void initialize()
// call initialize the same way as widgets do
qAddPreRoutine(QtWebEngineCore::initialize);
auto api = QQuickWindow::graphicsApi();
- if (api != QSGRendererInterface::OpenGLRhi && api != QSGRendererInterface::VulkanRhi)
+ if (api != QSGRendererInterface::OpenGLRhi && api != QSGRendererInterface::VulkanRhi && api != QSGRendererInterface::MetalRhi)
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi);
}
} // namespace QtWebEngineQuick