diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-03-15 15:07:19 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2023-04-12 12:13:57 +0200 |
commit | cceda0895b3aca208e37669b2acb38c01e9f1774 (patch) | |
tree | 1a28f9521c00b1fdb6be66bc7a423b1086ce06bf /src/core/compositor/compositor.cpp | |
parent | 6cfbef4474d2cb15fec37103c3609da919f8a4ca (diff) |
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/core/compositor/compositor.cpp')
-rw-r--r-- | src/core/compositor/compositor.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/core/compositor/compositor.cpp b/src/core/compositor/compositor.cpp index fed395cb1..c147f988b 100644 --- a/src/core/compositor/compositor.cpp +++ b/src/core/compositor/compositor.cpp @@ -137,36 +137,27 @@ Compositor::Handle<Compositor::Observer> Compositor::observer() return nullptr; } -QImage Compositor::image() -{ - Q_UNREACHABLE(); - return {}; -} - void Compositor::waitForTexture() { - Q_UNREACHABLE(); } -int Compositor::textureId() +void Compositor::releaseTexture() { - Q_UNREACHABLE(); - return 0; } -#if QT_CONFIG(webengine_vulkan) -VkImage Compositor::vkImage(QQuickWindow *) +QSGTexture *Compositor::texture(QQuickWindow *, uint32_t textureOptions) { Q_UNREACHABLE(); - return {}; + return nullptr; } -VkImageLayout Compositor::vkImageLayout() +bool Compositor::textureIsFlipped() { Q_UNREACHABLE(); - return {}; + return false; } +#if QT_CONFIG(webengine_vulkan) void Compositor::releaseVulkanResources(QQuickWindow *) { Q_UNREACHABLE(); |