summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/qrendercapture.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.15' into devMike Krus2020-04-271-16/+17
|\ | | | | | | Change-Id: Id669d5c1aab29965eac0dabd1cb497e908dac23e
| * Fix crash in rendercapture-cpp manual testPaul Lemire2020-03-231-17/+18
| | | | | | | | | | Change-Id: Id4ad6552fc1a254bd9414bab63400d624e902442 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Remove deprecated classes and functionsPaul Lemire2020-02-111-64/+0
| | | | | | | | | | | | | | Mostly old messaging API Change-Id: I17eb2206b2ede56d2f7d36375d5e711d6149019f Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* | Merge remote-tracking branch 5.15 into devMike Krus2020-02-071-2/+2
|\| | | | | | | Change-Id: I731aa986e1cc45b3af920db1a23f256927beecf7
| * Deprecate message APIMike Krus2019-12-091-2/+2
| | | | | | | | | | | | | | | | Deprecates the message classes and the public APIs to send/receive them. (deprecates the constructors as deprecating classes breaks syncqt) Change-Id: I4908f15c3c5f1d63969a0f2e11f6ecb22e2e3748 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2019-09-241-8/+4
|\| | | | | | | Change-Id: Ifbf6091cf4bf41b282caee6eaf8d9c4adb6cca89
| * Update QRenderCapture to use direct syncPaul Lemire2019-09-201-8/+4
| | | | | | | | | | Change-Id: I3a253af0ee11ad141c3dbcaf8b92e3f67797f05f Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Remove usages of deprecated APIsSona Kurazyan2019-09-101-0/+4
|/ | | | | | | | | | | | - Replaced the deprecated constructors of QWheelEvent with the non-deprecated one. - Fixed the docs of deprecated APIs to compile conditionally, only when those APIs are enabled. Task-number: QTBUG-76491 Change-Id: Id45b3f0dd2720d901c808fc69adbafb80e096fac Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QRenderCapture: Prevent crash on shutdown when replies are pendingChristian Andersen2019-01-061-3/+0
| | | | | | | | | | | | | When a QRenderCapture is deleted its destructor runs, then the QFrameGraphNode destructor, then the QNode destructor and finally the QObject destructor. The QObject destructor deletes its QObjectPrivate member, which destructs QRenderCapturePrivate. At that point the QRenderCapturePrivate tries to disconnect on an invalid pointer to the QRenderCapture (which was already deleted). Change-Id: Ib5835e3f86a282b963220b0dab656258111a61ab Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Add missing dots (qt3d)Paul Wicking2018-06-191-2/+2
| | | | | | Task-number: QTBUG-68933 Change-Id: I4226b8b9d70548b6921948c5ea47520f40f5df98 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Prevent potential containers detachingMike Krus2018-01-141-1/+1
| | | | | | | Found by Clazy clazy-range-loop Change-Id: I4956f9be2b7b3f986b2fc83c1d883829314a8b6c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix BC with QRenderCaptureMäättä Antti2017-11-131-4/+24
| | | | | | | Add overload for the new function and set revision. Change-Id: I235ebf0be575467a882735f1fc87844a8b40889f Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge remote-tracking branch 'origin/5.9' into devAndy Nichols2017-07-111-0/+30
|\ | | | | | | Change-Id: I4ceccd338a937a2ada231f568ed02c7a87bd6e80
| * Fix QRenderCaptureReply deallocationMäättä Antti2017-06-211-0/+30
| | | | | | | | | | | | | | | | Add deallocation guard and set parent of the reply. Task-number: QTBUG-61508 Change-Id: Ia299450d792b2254c2944472382c8241b271ebf6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Add optional QRect parameter to QRenderCapture::requestCaptureMauro Persano2017-06-211-4/+6
|/ | | | | | | | | Add optional QRect parameter ot QRenderCapture::requestCapture in order to capture only part of the buffer. Task-number: QTBUG-61068 Change-Id: I24605725764a07bd5f6a84637aaaab035ec9e3c7 Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* QRenderCapture: add saveImage() to replace saveToFile()Andy Maloney2017-04-121-0/+31
| | | | | | | | | QRenderCapture::saveToFile() does not return success/failure. Returning this properly means we don't have to verify success somehow. So add a new method called saveImage() to return the information, and deprecate saveToFile(). Change-Id: I7cf6639d90baa8bce8b90ee795d953a021de7978 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix spelling in comments and docsAndy Maloney2017-04-061-2/+2
| | | | | Change-Id: Ib93da3bc94ee43980d1190955c8c37e886c4b0fa Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Fix crash in rendercapture-cppAntti Määttä2017-04-051-3/+5
| | | | | | | | | | The completed signal can deallocate the RenderCaptureReply, which causes the deprecated signal call to crash. Add Weak pointer to the reply to detect this and call the signal only if the reply is still valid. Change-Id: Ib0324fb3637bb1cad3e17b0e7cc47a8be67b9319 Reviewed-by: Juan José Casafranca Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Suppress warning about emitting a deprecated signalThiago Macieira2017-04-021-0/+4
| | | | | | | | | | We still need to emit it for compatibility, so disable the warning instead of removing the code. qrendercapture.cpp:308:49: warning: ‘void Qt3DRender::QRenderCaptureReply::completeChanged(bool)’ is deprecated: Use completed instead [-Wdeprecated-declarations] Change-Id: I27b55fdf514247549455fffd14b16ce3857e1ebd Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Clean up QRenderCapture(Reply) APIKevin Ottens2017-02-231-1/+35
| | | | | | | | | | | | | | | | We don't need the captureId in the public API so deprecate the functions which make it appear and create overloads with no such id when appropriate. Only a pointer to a QRenderCaptureReply is needed to represent a capture request. Also the "isCompleted" parameter is unneeded on the signal since it is always true anyway. If we'd want to do error management it would go via a status flag property or similar. Change-Id: I9571ece3e3f82f46db5b3993ccf035e770c9d55e Task-Id: QTBUG-58877 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* QFrameGraphNode and subclasses: use the QFrameGraphNodeCreatedChangePaul Lemire2016-12-131-1/+2
| | | | | Change-Id: I5c22b3face1a6b73ea0c10c32a16da2d8cab5f5d Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Specify #include path for each \classTopi Reinio2016-12-071-0/+2
| | | | | | | | | | | | QDoc tries to guess the correct #include statement, displayed in the requisites table in the class reference. However, this often produces incorrect information for a module as complex as Qt3D. To fix this, manually specify the include path with the \inheaderfile command. Change-Id: I42929b92600d07d759f4f76e9051ff656785c652 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Implement QRenderCapture frame graph nodeAntti Määttä2016-08-251-0/+290
QRenderCapture frame graph node, frontend implementation. Change-Id: Iebeec7a7718e5adda9996ff481dfdefc1568a467 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>