diff options
author | Marin Shalamanov <shalamanov@google.com> | 2021-05-05 13:43:28 +0200 |
---|---|---|
committer | Marin Shalamanov <shalamanov@google.com> | 2021-05-05 13:36:28 +0000 |
commit | a308b9d54eda851a93cc9ac2fdc8d0cf0b8d6319 (patch) | |
tree | 7a1a029e2f743f3d7f1b4258a13dc3baa6ae3d68 /include | |
parent | 7eba108a9eac93c06168e3d8b1d4bfb926f4ca42 (diff) |
Update setFrameRate documentation
Add a link to how to listen to the change in frame rate.
Bug: 186657402
Test: n/a
Change-Id: Idb04f966906964a98a744d914e5aca2b1db4ee46
Diffstat (limited to 'include')
-rw-r--r-- | include/android/surface_control.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/android/surface_control.h b/include/android/surface_control.h index b7eafcd6cd..a6cf353a24 100644 --- a/include/android/surface_control.h +++ b/include/android/surface_control.h @@ -526,6 +526,9 @@ void ASurfaceTransaction_setFrameRate(ASurfaceTransaction* transaction, * callback timings, and changes to the time interval at which the system releases buffers back to * the application. * + * You can register for changes in the refresh rate using + * \a AChoreographer_registerRefreshRateCallback. + * * \param frameRate is the intended frame rate of this surface, in frames per second. 0 is a special * value that indicates the app will accept the system's choice for the display frame rate, which is * the default behavior if this function isn't called. The frameRate param does <em>not</em> need to |