UI toolkit dVRR set frame rate category as HIGH by default
This CL made the following changes to enable the Step 1' for the UI
toolkit dVRR
project:
1. Set default frame rate category of a View as HIGH unless the size of
the View is small (NORMAL).
2. Don't disable boost when typing.
3. Migrate the infrequent layter logic from SurfaceFlinger to Toolkit.
The infrequent layter logic includes:
- NORMAL for infrequent update: FT2-FT1 > 100 && FT3-FT2 > 100.
- HIGH/NORMAL based on size for frequent update: (FT3-FT2) + (FT2 - FT1) < 100.
- otherwise, use the previous category value.
Bug: 278731727
Test: atest ViewRootImplTest
Change-Id: I2ba2f20aa819c145eb715ae3aa609e8dae86b3b0
4 files changed