diff options
| author | 2024-01-03 23:21:34 +0000 | |
|---|---|---|
| committer | 2024-01-03 23:21:34 +0000 | |
| commit | 33c409d98b9afcc4a90adf07df2e04f16ff613fc (patch) | |
| tree | 1971b49aa01e00818065dff3be6dccd105547a78 /libs | |
| parent | 365716398f5955558ce7185ede55d923b7ed9781 (diff) | |
| parent | 9580ff12b560e37b17be4fd9a3f1084415f8debc (diff) | |
Merge "Support HIGH_INTERACTIVE category in native" into main
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/nativewindow/include/system/window.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/nativewindow/include/system/window.h b/libs/nativewindow/include/system/window.h index a98ea86073..969a5cff05 100644 --- a/libs/nativewindow/include/system/window.h +++ b/libs/nativewindow/include/system/window.h @@ -1095,10 +1095,19 @@ enum { ANATIVEWINDOW_FRAME_RATE_CATEGORY_NORMAL = 3, /** + * Indicates that, as a result of a user interaction, an animation is likely to start. + * This category is a signal that a user interaction heuristic determined the need of a + * high refresh rate, and is not an explicit request from the app. + * As opposed to FRAME_RATE_CATEGORY_HIGH, this vote may be ignored in favor of + * more explicit votes. + */ + ANATIVEWINDOW_FRAME_RATE_CATEGORY_HIGH_HINT = 4, + + /** * Indicates a frame rate suitable for animations that require a high frame rate, which may * increase smoothness but may also increase power usage. */ - ANATIVEWINDOW_FRAME_RATE_CATEGORY_HIGH = 4 + ANATIVEWINDOW_FRAME_RATE_CATEGORY_HIGH = 5 }; /* |