~gerboland/+junk/qml-visualizer-plugin

Viewing all changes in revision 5.

  • 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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: