Notify renderer for CPU hint during process ViewPostImeInputStage
In case an expensive frame may take long time rendering when a
view requests layout/measure during processing the pointer
event in ViewPostImeInputStage that may cause the jank
(e.g. Deadline missing),
Add hasExpensiveMeasuresDuringInputEvent to notify renderer for
raising CPU load when the above potential cases happens.
Bug: 256549451
Test: Verify PTS CUJ test for gmail scolling:
0) Enable android.os.Flags.adpfMeasureDuringInputEventBoost by
device_config
0-1) Log-in Gmail with a test account and enable Wifi.
1) Run below test command
pts-tradefed run commandAndExit cuj/scroll/gmail-list \
-l VERBOSE \
--fastboot-command-preparer:disable
2) Check if any jank slice in trace during ViewPostImeInputStage
Change-Id: I3fc0c896926b6ff0f402a51d2c742d9cb7ed9379
3 files changed