diff options
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; |