mer-hybris / qt5-qpa-hwcomposer-plugin

Qt 5 QPA plugin for Droid hwcomposer
22 stars 45 forks source link

[hwcomposer] Fix potential crash and slightly improve lock times for sch... #34

Closed sletta closed 9 years ago

sletta commented 9 years ago

...eduleLayerList

The crash was that we didn't set acceptedLayerList to 0 when we started another check. This would trigger the Q_ASSERT(acceptedLayerList==0) further down.

The improvement is that we only need to mutex lock access to 'backend' not the entire checkLayerList function. Once the m_scheduledLayerList has been read on the HwcThread, we can release the mutex