~gerboland/+junk/qml-visualizer-plugin

  • Committer: Gerry Boland
  • Date: 2016-12-08 12:53:21 UTC
  • Revision ID: gerry.boland@canonical.com-20161208125321-tt1efyv9lxsnh3gg
Fix rendering after enabling visualization

Deleting the renderer in the BeforeSync stage is not compatible with the threaded renderer, as it checks if a renderer exists before the BeforeSync stage, and if it exists refuses to re-create the renderer.

We could re-create it outselves, but we cannot connect its scenegraphChanged signal to the QSGRenderLoop slot, which drives the renderer to render a new frame.

Instead a safer time to delete the renderer is after a frame is rendered. When it needs it, Qt will correctly recreate and connect to the renderer, before using it.
Filename Latest Rev Last Changed Committer Comment Size
..
Debug 1 7 years ago Gerry Boland Initial commit of QML plugin exporting a DBus inte Diff
qml-visualizer-plugin.pro 1 7 years ago Gerry Boland Initial commit of QML plugin exporting a DBus inte 35 bytes Diff Download File
test.qml 4 7 years ago Gerry Boland Add simple way to generate single frame to test 1 KB Diff Download File