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 ca6a03d7a4
commit e0c25a9459

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);