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
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-04-12 15:19:09 +0000
commit5bdc4bf4048a18ece193c9baf8f283add6639dc3 (patch)
treec5d6cc078a56ab831e72983b39151f7321b1251f /src/webenginequick/api/qtwebenginequickglobal.cpp
parent9dcc31a1a780e39a6b66d0698bee0f0db6f3ac87 (diff)
downloadqtwebengine-5bdc4bf4048a18ece193c9baf8f283add6639dc3.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. Fixes: QTBUG-112282 Task-number: QTBUG-112280 Change-Id: I066ba1d3e72508e047d259ae5797659d45335fb2 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> (cherry picked from commit cceda0895b3aca208e37669b2acb38c01e9f1774) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
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