Bug 1733973 - Remove unused layers::UpdateIndirectTree(). r=gfx-reviewers,nical

Differential Revision: https://phabricator.services.mozilla.com/D127517
This commit is contained in:
Tetsuharu Ohzeki 2021-10-06 00:40:21 +00:00
Родитель 92a33e46f7
Коммит c17ac7f311
3 изменённых файлов: 0 добавлений и 10 удалений

Просмотреть файл

@ -1798,13 +1798,6 @@ void CompositorBridgeParent::InvalidateRemoteLayers() {
});
}
void UpdateIndirectTree(LayersId aId, Layer* aRoot,
const TargetConfig& aTargetConfig) {
MonitorAutoLock lock(*sIndirectLayerTreesLock);
sIndirectLayerTrees[aId].mRoot = aRoot;
sIndirectLayerTrees[aId].mTargetConfig = aTargetConfig;
}
/* static */ CompositorBridgeParent::LayerTreeState*
CompositorBridgeParent::GetIndirectShadowTree(LayersId aId) {
// Only the compositor thread should use this method variant

Просмотреть файл

@ -488,7 +488,6 @@ class CompositorBridgeParent final : public CompositorBridgeParentBase,
// their FrameMetrics with the corresponding child process that holds
// the PCompositorBridgeChild
ContentCompositorBridgeParent* mContentCompositorBridgeParent;
TargetConfig mTargetConfig;
CompositorController* GetCompositorController() const;
RefPtr<UiCompositorControllerParent> mUiControllerParent;

Просмотреть файл

@ -45,8 +45,6 @@ namespace layers {
typedef std::map<LayersId, CompositorBridgeParent::LayerTreeState> LayerTreeMap;
extern LayerTreeMap sIndirectLayerTrees;
extern StaticAutoPtr<mozilla::Monitor> sIndirectLayerTreesLock;
void UpdateIndirectTree(LayersId aId, Layer* aRoot,
const TargetConfig& aTargetConfig);
void EraseLayerState(LayersId aId);
void ContentCompositorBridgeParent::ActorDestroy(ActorDestroyReason aWhy) {