summaryrefslogtreecommitdiffstats
path: root/src/render/backend/platformsurfacefilter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QRenderAspect/Renderer: refactored to use the AbstractRenderer interfacePaul Lemire2015-11-241-5/+9
| | | | | Change-Id: I662577e6dd337b1f056f73b4a11262e902d4dde2 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* PlatformSurfaceFilter/Renderer: render only when surface is exposedPaul Lemire2015-11-201-0/+5
| | | | | Change-Id: Idec2f0ee5f3ace590421698293742932e8843aae Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Rename Renderer -> Render throughoutSean Harmer2015-10-191-1/+1
| | | | | | | | This is for consistency between the C++ namespaces and QML imports and with the other aspects. Change-Id: I73392f138b4e519b12888f52530123e3d0ba445e Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Move Render aspect into the Qt3DRender namespaceSean Harmer2015-10-131-2/+2
| | | | | | | Updated examples and tests accordingly. Change-Id: I8848a88472de2302aa072fa11f21ea934672b7e6 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fixed cleanup and destruction of PlatformSurfaceFilterJørn Bersvendsen2015-10-071-0/+1
| | | | | | | | | | | | The PlatformSurfaceFilter now detaches from the QSurface when the surface is about to be destroyed. If this is not done, the filter will not be detached until it is destroyed, which may happen after the QSurface is destroyed, causing a crash in the destructor of PlatformSurfaceFilter. Change-Id: I1e95450ca0afd0ca33e3e35870dfb4eee7855ee4 Reviewed-by: Fredrik Orderud <forderud@gmail.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Qt3D::QWindow: window classPaul Lemire2015-08-081-1/+1
| | | | | Change-Id: Ie015dbdd0b7eed2fb82ef00096db7f9e51da4bd8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Copyright header change.Mika Salmela2015-02-091-19/+14
| | | | | | | | As for preparation for Qt5.5 release the copyright header is updated to correspond the current license requirements. Change-Id: I36632918b66f455539453b42c369689fb11298ec Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Cleanly exit the render threadSean Harmer2014-11-171-0/+122
We have to mutex protect accesses to the m_surface variable in the Renderer as the main thread may call destroy() on the corresponding QWindow. This can happen in response to the window being closed or changing QScreens. Calling swapBuffers() on a QSurface that has been destroyed does not fail gracefully but crashes. This change works around this by using the new QPlatformSurfaceEvent in QtGui which is sent to the window or offsceen surface when the platform surface has been created or is about to be destroyed. This event is used to inform the renderer to stop rendering to the window surface in a safe manner, before the native surface gets destroyed. The Renderer::submitRenderViews() now checks at the start of each frame that the m_surface is still valid. There is still another crash at shutdown if applications are sending a lot of updates to the backend. Change-Id: I742226c7ae8f657e218cbcd45f0dff3d2b7bcc18 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>