diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /gfx/layers/ipc/CompositorBridgeParent.h | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/layers/ipc/CompositorBridgeParent.h')
-rw-r--r-- | gfx/layers/ipc/CompositorBridgeParent.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gfx/layers/ipc/CompositorBridgeParent.h b/gfx/layers/ipc/CompositorBridgeParent.h index 0e6bd48f9a..c7cb530989 100644 --- a/gfx/layers/ipc/CompositorBridgeParent.h +++ b/gfx/layers/ipc/CompositorBridgeParent.h @@ -24,6 +24,7 @@ #include "mozilla/layers/ISurfaceAllocator.h" // for IShmemAllocator #include "mozilla/layers/LayersTypes.h" #include "mozilla/layers/PCompositorBridgeParent.h" +#include "mozilla/layers/APZInputBridgeParent.h" #include "mozilla/webrender/WebRenderTypes.h" namespace mozilla { @@ -394,6 +395,10 @@ class CompositorBridgeParent final : public CompositorBridgeParentBase, ~LayerTreeState(); RefPtr<GeckoContentController> mController; APZCTreeManagerParent* mApzcTreeManagerParent; + // The mApzInputBridgeParent is only populated for LayerTreeState + // objects corresponding to root LayerIds (one for each top-level + // window). + APZInputBridgeParent* mApzInputBridgeParent; RefPtr<CompositorBridgeParent> mParent; RefPtr<WebRenderBridgeParent> mWrBridge; // Pointer to the ContentCompositorBridgeParent. Used by APZCs to share @@ -438,6 +443,13 @@ class CompositorBridgeParent final : public CompositorBridgeParentBase, LayersId aContentLayersId); /** + * Same as the GetApzcTreeManagerParentForRoot function, but returns + * the APZInputBridge for the parent process. + */ + static APZInputBridgeParent* GetApzInputBridgeParentForRoot( + LayersId aContentLayersId); + + /** * Used by the profiler to denote when a vsync occured */ static void PostInsertVsyncProfilerMarker(mozilla::TimeStamp aVsyncTimestamp); @@ -454,6 +466,9 @@ class CompositorBridgeParent final : public CompositorBridgeParentBase, const StaticMonitorAutoLock& aProofOfLayerTreeStateLock, const LayersId& aLayersId, LayerTreeState& aLayerTreeStateToUpdate); + static void SetAPZInputBridgeParent(const LayersId& aLayersId, + APZInputBridgeParent* aInputBridgeParent); + PAPZParent* AllocPAPZParent(const LayersId& aLayersId) override; bool DeallocPAPZParent(PAPZParent* aActor) override; |