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

Commit 7913d259 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Skip initializing unused system bar painter

SystemBarBackgroundPainter invokes getSystemUiContext, that may trigger
initializing a window context and load resources. The operation could
cost ~5ms due to attachWindowContextToDisplayContent.

Since flag drawSnapshotAspectRatioMatch is introduced, there is no
longer a case that the snapshot starting window need to draw bars
background. So its initialization can be skipped as well.

Bug: 297502610
Flag: EXEMPT reduce unnecessary invocation
Test: Task snapshot starting window is normal from hot launch app.

Change-Id: Id6fa10da245845d5ed5f78558ab2f4193d2c7133
parent 2f4e0476
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