diff options
| author | 2023-11-06 21:46:59 +0000 | |
|---|---|---|
| committer | 2023-11-09 23:23:25 +0000 | |
| commit | 347f7591f2ef3011f450d87e7815fc6bd7033678 (patch) | |
| tree | b355032888ecc8351145b2c783dbf7c3afeb2674 /libs/hwui/RenderNode.cpp | |
| parent | e91c7507aba9026899a2c021c26c0fa94a17ab18 (diff) | |
Add setRequestedFrameRate and getRequestedFrameRate APIs to View
This CL add public APIs setRequestedFrameRate and getRequestedFrameRate
to View. setRequestedFrameRate allows developers to set a preferred
frame rate or preferred frame rate category to a View.
Developer can pass a positive integer to setRequestedFrameRate to set
preferred frame rate or pass a constant variable (e.g.,
REQUESTED_FRAME_RATE_CATEGORY_LOW or REQUESTED_FRAME_RATE_CATEGORY_HIGH)
toe set preferred frame rate category.
Bug: 278731444
Test: atest ViewRootImplTest / ViewTest
Change-Id: Ica0ab97e96bd104e73dfe95bbd4917bf24e8f7cb
Diffstat (limited to 'libs/hwui/RenderNode.cpp')
0 files changed, 0 insertions, 0 deletions