bool CrossProcessCompositorBridgeParent::RecvNotifyApproximatelyVisibleRegion(const ScrollableLayerGuid& aGuid, const CSSIntRegion& aRegion) { CompositorBridgeParent* parent; { // scope lock MonitorAutoLock lock(*sIndirectLayerTreesLock); parent = sIndirectLayerTrees[aGuid.mLayersId].mParent; } if (parent) { return parent->RecvNotifyApproximatelyVisibleRegion(aGuid, aRegion); } return true; }
mozilla::ipc::IPCResult CrossProcessCompositorBridgeParent::RecvNotifyApproximatelyVisibleRegion(const ScrollableLayerGuid& aGuid, const CSSIntRegion& aRegion) { CompositorBridgeParent* parent; { // scope lock MonitorAutoLock lock(*sIndirectLayerTreesLock); parent = sIndirectLayerTrees[aGuid.mLayersId].mParent; } if (parent) { if (!parent->RecvNotifyApproximatelyVisibleRegion(aGuid, aRegion)) { return IPC_FAIL_NO_REASON(this); } return IPC_OK();; } return IPC_OK(); }