summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-01-24 14:19:13 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-24 15:48:32 +0100
commit7bf752b2b76c3c8f289d03801f2716b27480be67 (patch)
tree625276dfa01338aa3baa4388447748fb2ef48653 /doc
parent4fb6fb6612f1615729965f0515032d86695a86ba (diff)
downloadqtwayland-7bf752b2b76c3c8f289d03801f2716b27480be67.tar.gz
qtwayland-7bf752b2b76c3c8f289d03801f2716b27480be67.tar.bz2
qtwayland-7bf752b2b76c3c8f289d03801f2716b27480be67.zip
Don't clobber the m_damaged state during rendering.
If the QWaylandSurfaceNode had m_damage during preprocess() (which it could get if the GUI thread got a surfaceDamaged) it would call into the item, update its texture and clear its m_damaged state. This resulted in that the next time we advanced the buffer queue, the item would not have m_damaged set and as a result, the texture would not be updated. Also, the call from preprocess() to updateTexture, though protected by a mutex in preprocess(), touched a number of variables on the GUI thread which were not being protected there, such as m_damaged and smooth(). The QWaylandSurfaceNode was doing this primarily to deal with direct rendering which has been removed pending a better solution, so we replace its use with the built-in QSGSimpleTextureNode. Change-Id: Ifccb6b1149980b4796a182fa8525446a00bbe57f Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions