diff options
| author | 2021-04-27 15:56:08 +0000 | |
|---|---|---|
| committer | 2021-04-27 15:56:08 +0000 | |
| commit | 227e8f0a4bd76e7043f8b27cae754eca0f5bc33b (patch) | |
| tree | 38088b1d2e573ac6bc633a137d83580cc848141f | |
| parent | 7eba108a9eac93c06168e3d8b1d4bfb926f4ca42 (diff) | |
| parent | 293ac2c604419543ae05210aab47543577993caa (diff) | |
Merge "Update docs for setFrameRate" into sc-dev
| -rw-r--r-- | include/android/surface_control.h | 9 | ||||
| -rw-r--r-- | libs/nativewindow/include/android/native_window.h | 9 |
2 files changed, 11 insertions, 7 deletions
diff --git a/include/android/surface_control.h b/include/android/surface_control.h index b7eafcd6cd..f6c2e55c2d 100644 --- a/include/android/surface_control.h +++ b/include/android/surface_control.h @@ -534,11 +534,12 @@ void ASurfaceTransaction_setFrameRate(ASurfaceTransaction* transaction, * * \param compatibility The frame rate compatibility of this surface. The compatibility value may * influence the system's choice of display frame rate. To specify a compatibility use the - * ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_* enum. + * ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_* enum. This parameter is ignored when frameRate is 0. * - * \param changeFrameRateStrategy Whether display refresh rate transitions should be seamless. - * A seamless transition is one that doesn't have any visual interruptions, such as a black - * screen for a second or two. See the ANATIVEWINDOW_CHANGE_FRAME_RATE_* values. + * \param changeFrameRateStrategy Whether display refresh rate transitions caused by this + * surface should be seamless. A seamless transition is one that doesn't have any visual + * interruptions, such as a black screen for a second or two. See the + * ANATIVEWINDOW_CHANGE_FRAME_RATE_* values. This parameter is ignored when frameRate is 0. * * Available since API level 31. */ diff --git a/libs/nativewindow/include/android/native_window.h b/libs/nativewindow/include/android/native_window.h index 61b3f94aab..3865ba5777 100644 --- a/libs/nativewindow/include/android/native_window.h +++ b/libs/nativewindow/include/android/native_window.h @@ -302,6 +302,8 @@ enum ANativeWindow_ChangeFrameRateStrategy { * * Available since API level 31. * + * \param window pointer to an ANativeWindow object. + * * \param frameRate The intended frame rate of this window, 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 @@ -309,15 +311,16 @@ enum ANativeWindow_ChangeFrameRateStrategy { * valid refresh rate for this device's display - e.g., it's fine to pass 30fps * to a device that can only run the display at 60fps. * - * \param window pointer to an ANativeWindow object. - * * \param compatibility The frame rate compatibility of this window. The * compatibility value may influence the system's choice of display refresh * rate. See the ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_* values for more info. + * This parameter is ignored when frameRate is 0. * - * \param changeFrameRateStrategy Whether display refresh rate transitions should be seamless. + * \param changeFrameRateStrategy Whether display refresh rate transitions caused by this + * window should be seamless. * A seamless transition is one that doesn't have any visual interruptions, such as a black * screen for a second or two. See the ANATIVEWINDOW_CHANGE_FRAME_RATE_* values. + * This parameter is ignored when frameRate is 0. * * \return 0 for success, -EINVAL if the window, frame rate, or compatibility * value are invalid. |