Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b6deefa2 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Refresh pointer icons locally from ViewRootImpl

The previous pipeline for refreshing pointer icon from a View would
call into WindowManagerService, which would look up the cursor position
and call back into the app to updatePointerIcon(x, y). This
implmenetation requires WM to know the cursor position, and adds
unnecessary binder roundtrips.

When PointerChoreographer is enabled, we will store the last input event
used to resolve the pointer icon locally in the app, and will use that
whenever we need to force the pointer icon to resolve. We can do this
because the hit test in InputDispatcher will verify that the pointer is
indeed being sent to the app before allowing the icon to be changed.

Bug: 293587049
Test: manual with test app that calls View#setPointerIcon every second,
observe that the icon changes without needing to generate new events.

Change-Id: I5344fe7023d0caaff001215c4195947f94d24ae6
parent 7282d556
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment