Part of a bug-fix to eliminate race concditions in platform surface allocation
was lost during the merge commit
74815133d6b9f42d8e6c170979f01631e9151ac9.
This change restores the same.
Change-Id: Iab62cf1c74eab8c5d227f7bde8f259cf8e65e666
Reviewed-on: http://git-embedded-01.nvidia.com/r/4855
Reviewed-by: Adam Cheney <acheney@nvidia.com>
Tested-by: Rahul Singhal <rasinghal@nvidia.com>
void X11WindowSystem::checkForNewSurface()
{
+ m_pScene->lockScene();
LayerList layers = m_pScene->getCurrentRenderOrder();
for(LayerListConstIterator current = layers.begin(); current != layers.end(); current++)
{
allocatePlatformSurface(*currentS);
}
}
+ m_pScene->unlockScene();
}
void X11WindowSystem::configureSurfaceWindow(Window window)