mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Bug 1213758 - Aquire the inderect layer trees data lock during plugin window update calculations. r=matt.woodrow
This commit is contained in:
parent
ca6a03d7a4
commit
e0c25a9459
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user