[AT-SPI] Prevent flooding D-Bus with PostRender events 27/290027/1
authorArtur Świgoń <a.swigon@samsung.com>
Fri, 17 Mar 2023 09:15:30 +0000 (10:15 +0100)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 17 Mar 2023 09:16:35 +0000 (10:16 +0100)
commita38c37afe570a2c60bb06070ccbd377a7e32f4aa
tree5069ead83b98761a5889ec1fdf2d1781edbe3e29
parentad7f494979c10b4048438f353fbb990d38ff78e3
[AT-SPI] Prevent flooding D-Bus with PostRender events

When enabled with SetListenPostRender, the window Accessible emits countless
PostRender events on D-Bus. The CoalescableMessages mechanism can be used here
just like for BoundsChanged and SetOffset. This way, with this patch, the
PostRender events come at a steady rate. With CoalescableMessages at least one
event will still be emitted if requested, which is important for clients who
may depend on there being a PostRender event on the AT-SPI bus after a
particular operation -- there still is, but without the flooding.

Change-Id: Iab9451d3bff7bf57007388ed641ba543d40b52c1
dali/devel-api/adaptor-framework/accessibility-bridge.h
dali/devel-api/adaptor-framework/accessibility.cpp
dali/internal/accessibility/bridge/bridge-base.h
dali/internal/accessibility/bridge/bridge-object.cpp
dali/internal/accessibility/bridge/bridge-object.h
dali/internal/accessibility/bridge/dummy/dummy-atspi.h