summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmoffscreensurface.cpp
diff options
context:
space:
mode:
authorMikolaj Boc <[email protected]>2022-11-14 09:12:34 +0100
committerMikolaj Boc <[email protected]>2022-11-26 11:23:13 +0100
commitfa27a59ec3cfc173d5ff202feb23e8b6e398dac9 (patch)
treea34f7a199611118e826a029a5bebf93f9425b32d /src/plugins/platforms/wasm/qwasmoffscreensurface.cpp
parentc675c1c56d3c00b3c1de5aee8c7c6f7eeeb70bc1 (diff)
Use the browser compositor for drawing windows on WASM
Make the browser compositor draw the window non-client area (using css + html). Get rid of OpenGL usage in non-OpenGL windows and use canvas 2d context instead to blit the texture (QImage). Also, as part of the change, remove the deprecated canvas element support in QScreen. Fixes: QTBUG-107116 Fixes: QTBUG-107219 Change-Id: I65f0d91831c806315685ca681ac0e416673f5cd5 Reviewed-by: Morten Johan Sørvig <[email protected]> Reviewed-by: Aleksandr Reviakin <[email protected]> Reviewed-by: David Skoland <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmoffscreensurface.cpp')
-rw-r--r--src/plugins/platforms/wasm/qwasmoffscreensurface.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/platforms/wasm/qwasmoffscreensurface.cpp b/src/plugins/platforms/wasm/qwasmoffscreensurface.cpp
index 79ec9af62b9..4a1fc16eca1 100644
--- a/src/plugins/platforms/wasm/qwasmoffscreensurface.cpp
+++ b/src/plugins/platforms/wasm/qwasmoffscreensurface.cpp
@@ -11,9 +11,6 @@ QWasmOffscrenSurface::QWasmOffscrenSurface(QOffscreenSurface *offscreenSurface)
}
-QWasmOffscrenSurface::~QWasmOffscrenSurface()
-{
-
-}
+QWasmOffscrenSurface::~QWasmOffscrenSurface() = default;
QT_END_NAMESPACE