diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-03-15 15:07:19 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-04-12 15:19:09 +0000 |
commit | 5bdc4bf4048a18ece193c9baf8f283add6639dc3 (patch) | |
tree | c5d6cc078a56ab831e72983b39151f7321b1251f /src/webenginequick/api/qtwebenginequickglobal.cpp | |
parent | 9dcc31a1a780e39a6b66d0698bee0f0db6f3ac87 (diff) | |
download | qtwebengine-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.cpp | 2 |
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 |