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

Skip to content
Commit c3c3f139 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Avoid redundant post message from WindowStateResizeItem

ClientTransactionItem is already run on main thread. If the
UI thread also uses main thread, it is unnecessary to post.

Otherwise it may cause flicker/overhead when handling
a ClientTransaction with multiple items:
 ConfigItem -> request draw
 ResizeItem -> post message (dispatchResized)
  -> The draw request from ConfigItem is executed.
     That becomes an additional frame with intermediate state.
 Resize message -> request draw (handleResized)
  -> draw again with the latest state

Bug: 298203767
Bug: 312457036
Test: Enable windowStateResizeItemFlag.
      Expand notification shade and rotate device.

Change-Id: I561335ced4e13355df233f3921b9453d3bf7196c
parent bc1d6d5d
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