commit | 67434eb6a138eadad9e0c38f111841957ff7fa41 | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Thu Dec 01 17:48:12 2022 -0800 |
committer | Ady Abraham <adyabr@google.com> | Mon Dec 05 16:12:09 2022 -0800 |
tree | d8743346132f80f463dde4184649569f68f3b79c | |
parent | 0cbe46547ecbb237101d0d27c6bdb7761254b268 [diff] |
SF: send the renderFrameRate with mode changed event Bug: 259740021 Test: atest FrameRateOverrideHostTest Test: atest libsurfaceflinger_unittest Change-Id: I3ef1b5c945826b37b9da739177c0b2fcd9444e08
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index aaa2102..325c294 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp
@@ -2337,6 +2337,7 @@ } outInfo->activeDisplayModeId = ginfo.activeDisplayModeId; + outInfo->renderFrameRate = ginfo.renderFrameRate; outInfo->supportedColorModes.clear(); outInfo->supportedColorModes.reserve(ginfo.supportedColorModes.size());
diff --git a/libs/gui/aidl/android/gui/DynamicDisplayInfo.aidl b/libs/gui/aidl/android/gui/DynamicDisplayInfo.aidl index 57e6081..3114929 100644 --- a/libs/gui/aidl/android/gui/DynamicDisplayInfo.aidl +++ b/libs/gui/aidl/android/gui/DynamicDisplayInfo.aidl
@@ -27,6 +27,7 @@ List<DisplayMode> supportedDisplayModes; int activeDisplayModeId; + float renderFrameRate; int[] supportedColorModes; int activeColorMode;