diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2014-12-12 12:59:43 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-18 09:46:23 +0100 |
commit | 6c2da36c22e25e626a9812419332ad379e854133 (patch) | |
tree | 63b70bc1fce47768f262b3793d93338f42bfd79f /src/android | |
parent | b8e71aa8477765008798d4bd7887244cb4cc2db7 (diff) |
Prevent continuous painting with viewport QOpenGLWidget
Add the source widget to the texture list (may be null for custom
compositor implementations that add textures not belonging to actual
widgets). This allows us to do proper checks with the
dirtyRenderToTextureWidgets list.
As a result paint events are only sent to a QOpenGLWidget if (1) there
was an update() for it or (2) it was actually marked dirty. (2) was
previously behaving differently: the widget got a paint event when
anything in the window has changed. This is fine for naive animating
OpenGL code but less ideal for QGraphicsView.
Bool properties like stacksOnTop are now stored in a flags value to
prevent future explosion of texture list fields and parameters.
Task-number: QTBUG-43178
Change-Id: I48cbcf93df72ac682c9b5d64982a8b648fe21ef3
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'src/android')
0 files changed, 0 insertions, 0 deletions