Bug 1761872 - Remove APZSampler::GetGeckoFixedLayerMargins(). r=hiro

APZCTreeManager::GetGeckoFixedLayerMargins() is also removed,
but the field mGeckoFixedLayerMargins is kept as it's used internally
in WebRender codepaths.

Differential Revision: https://phabricator.services.mozilla.com/D142292
This commit is contained in:
Botond Ballo 2022-03-29 00:33:18 +00:00
parent ee733433df
commit 644d1c7d9d
4 changed files with 0 additions and 16 deletions

View File

@ -82,8 +82,6 @@ class APZSampler {
const LayersId& aLayersId,
const ScrollableLayerGuid::ViewID& aScrollId) const;
ScreenMargin GetGeckoFixedLayerMargins() const;
/**
* This can be used to assert that the current thread is the
* sampler thread (which samples the async transform).

View File

@ -2941,11 +2941,6 @@ already_AddRefed<AsyncPanZoomController> APZCTreeManager::FindZoomableApzc(
return GetZoomableTarget(aStart, aStart);
}
ScreenMargin APZCTreeManager::GetGeckoFixedLayerMargins() const {
RecursiveMutexAutoLock lock(mTreeLock);
return mGeckoFixedLayerMargins;
}
ScreenMargin APZCTreeManager::GetCompositorFixedLayerMargins() const {
RecursiveMutexAutoLock lock(mTreeLock);
return mCompositorFixedLayerMargins;

View File

@ -558,8 +558,6 @@ class APZCTreeManager : public IAPZCTreeManager, public APZInputBridge {
already_AddRefed<AsyncPanZoomController> FindZoomableApzc(
AsyncPanZoomController* aStart) const;
ScreenMargin GetGeckoFixedLayerMargins() const;
ScreenMargin GetCompositorFixedLayerMargins() const;
APZScrollGeneration NewAPZScrollGeneration() {

View File

@ -122,13 +122,6 @@ AsyncTransform APZSampler::GetCurrentAsyncTransform(
aComponents);
}
ScreenMargin APZSampler::GetGeckoFixedLayerMargins() const {
MOZ_ASSERT(CompositorThreadHolder::IsInCompositorThread());
AssertOnSamplerThread();
return mApz->GetGeckoFixedLayerMargins();
}
ParentLayerRect APZSampler::GetCompositionBounds(
const LayersId& aLayersId,
const ScrollableLayerGuid::ViewID& aScrollId) const {