qt5base-lts/tests/auto/gui
Laszlo Agocs a5db072dc2 rhi: Add explicit subclass for RTs from swapchains
We want to enable gaining access to the underlying resource(s) by
inspecting a QRhiRenderTarget. This is not currently possible for
swapchains since there is nothing that references the actual
QRhiSwapChain. To clean this up, make an explicit, new
QRhiSwapChainRenderTarget subclass. Thus the logic already used in a
couple of places to examine the resources attached to a
QRhiTextureRenderTarget can now work with swapchain render targets too,
by branching based on the resourceType().

This eliminates the somewhat odd setup where a "RenderTarget" resource
is QRhiRenderTarget corresponding (but not exposing!) a swapchain,
whereas a "TextureRenderTarget" is a QRhiTextureRenderTarget which
is a subclass of QRhiRenderTarget. Now we correctly have an (abstract)
base and two subclasses, one for each type of render targets.

Besides, it allows us to clean up the oddly named
Q...ReferenceRenderTarget classes in the backends, which initially tried
to indicate that this "render target" merely references (or, in
practice, is) a swapchain. We can now have a nice and symmetrical
Q...SwapChainRenderTarget and Q...TextureRenderTarget naming scheme.

Change-Id: Ib07e9be99a316eec67b94de0860e08f5f4638959
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2022-04-05 19:40:17 +02:00
..
image Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
itemmodels Android: skip tst_QFileSystemModel::specialFiles() 2022-03-25 22:43:49 +01:00
kernel Android: enable tst_QScreen::grabWindow 2022-03-31 11:48:54 +01:00
math3d QtGui/math3d: Fix QQuaternion::getEulerAngles for GimbalLock cases 2022-01-16 01:12:15 +01:00
painting QColor: deprecate isValidColor, setNamedColor, string-ish ctors 2022-03-15 10:36:09 +00:00
platform tests: skip tst_QX11Info on Wayland 2022-02-17 00:34:50 +01:00
qopengl tst_qopengl: set surfaceType explicitly 2022-03-18 13:02:11 +02:00
qopenglconfig Remove the qmake project files 2021-01-07 15:32:28 +01:00
qvulkan Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
rhi rhi: Add explicit subclass for RTs from swapchains 2022-04-05 19:40:17 +02:00
text CI: Blacklist mixedScripts for QNX 2022-04-05 12:27:49 +00:00
util QDesktopServices: deprecate destroying URL handlers w/o explicit unsetUrlHandler() 2022-02-15 12:20:16 +00:00
CMakeLists.txt Move QtX11Extras into QtGui as private API 2021-05-10 21:19:46 +00:00