summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformsurface.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2025-08-27 10:41:51 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2025-09-03 16:43:57 +0200
commit8391c01f38c9101ab8e275354e82b489457a6bc6 (patch)
treeb0ff889a7ca45c9b480602e9bc40e9872df0f082 /src/gui/kernel/qplatformsurface.cpp
parente97cb95572fabdb5c34282da6370b4e92906cc99 (diff)
Deprecate and remove traces of RasterGLSurface
We no longer use this hybrid surface type approach for Qt Widget's composition mode. Nowadays we use RHI to compose the widget texture and the native textures, and the window surface type depends on the RHI API in use, e.g. QSurface::MetalSurface, or QSurface::OpenGLSurface. Change-Id: I85001100f681a1cf524b8b7dc50f680a9579b447 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformsurface.cpp')
-rw-r--r--src/gui/kernel/qplatformsurface.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gui/kernel/qplatformsurface.cpp b/src/gui/kernel/qplatformsurface.cpp
index 39a1869de62..b7c5e36dfa6 100644
--- a/src/gui/kernel/qplatformsurface.cpp
+++ b/src/gui/kernel/qplatformsurface.cpp
@@ -32,17 +32,6 @@ QPlatformSurface::QPlatformSurface(QSurface *surface) : m_surface(surface)
{
}
-bool QPlatformSurface::isRasterSurface(QSurface *surface)
-{
- switch (surface->surfaceType()) {
- case QSurface::RasterSurface:
- case QSurface::RasterGLSurface:
- return true;
- default:
- return false;
- };
-}
-
#ifndef QT_NO_DEBUG_STREAM
Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QPlatformSurface *surface)
{