Bug 1213758 - Aquire the inderect layer trees data lock during plugin window update calculations. r=matt.woodrow

This commit is contained in:
Jim Mathies 2015-10-19 10:38:42 -05:00
parent 0b6ca3aea8
commit 3f2c2e7e20

View File

@ -2057,7 +2057,13 @@ CrossProcessCompositorParent::ShadowLayersUpdated(
bool
CompositorParent::UpdatePluginWindowState(uint64_t aId)
{
MonitorAutoLock lock(*sIndirectLayerTreesLock);
CompositorParent::LayerTreeState& lts = sIndirectLayerTrees[aId];
if (!lts.mParent) {
PLUGINS_LOG("[%" PRIu64 "] layer tree compositor parent pointer is null", aId);
return false;
}
// Check if this layer tree has received any shadow layer updates
if (!lts.mUpdatedPluginDataAvailable) {
PLUGINS_LOG("[%" PRIu64 "] no plugin data", aId);