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

Commit a5b6657e authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Reduce applying empty transaction when finishing drawing

For example, when a snapshot starting window reports drawn, the
"t" will be null and mDrawHandlers is empty. But executeDrawHandlers
still invokes t.apply() which doesn't contain any operations.

Also reduce some unnecessary ArrayList creation by the way.

Bug: 442747045
Flag: EXEMPT refactor
Test: atest WindowStateTests#testApplyWithNextDraw
Change-Id: Ie082cb90f61406db99a31ca81ca70bf7c458fe2b
parent e8ce1497
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment