File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2807,6 +2807,7 @@ void SurfaceComposerClient::getDynamicDisplayInfoInternal(gui::DynamicDisplayInf
28072807 outInfo->autoLowLatencyModeSupported = ginfo.autoLowLatencyModeSupported ;
28082808 outInfo->gameContentTypeSupported = ginfo.gameContentTypeSupported ;
28092809 outInfo->preferredBootDisplayMode = ginfo.preferredBootDisplayMode ;
2810+ outInfo->hasArrSupport = ginfo.hasArrSupport ;
28102811}
28112812
28122813status_t SurfaceComposerClient::getDynamicDisplayInfoFromId (int64_t displayId,
Original file line number Diff line number Diff line change @@ -43,4 +43,7 @@ parcelable DynamicDisplayInfo {
4343
4444 // The boot display mode preferred by the implementation.
4545 int preferredBootDisplayMode ;
46+
47+ // Represents whether display supports ARR.
48+ boolean hasArrSupport ;
4649}
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ struct DynamicDisplayInfo {
5353 ui::DisplayModeId preferredBootDisplayMode;
5454
5555 std::optional<ui::DisplayMode> getActiveDisplayMode () const ;
56+
57+ bool hasArrSupport;
5658};
5759
5860} // namespace android::ui
Original file line number Diff line number Diff line change @@ -1215,6 +1215,7 @@ void SurfaceFlinger::getDynamicDisplayInfoInternal(ui::DynamicDisplayInfo*& info
12151215 const auto mode = display->refreshRateSelector ().getActiveMode ();
12161216 info->activeDisplayModeId = ftl::to_underlying (mode.modePtr ->getId ());
12171217 info->renderFrameRate = mode.fps .getValue ();
1218+ info->hasArrSupport = mode.modePtr ->getVrrConfig () && FlagManager::getInstance ().vrr_config ();
12181219 info->activeColorMode = display->getCompositionDisplay ()->getState ().colorMode ;
12191220 info->hdrCapabilities = filterOut4k30 (display->getHdrCapabilities ());
12201221
@@ -8639,6 +8640,7 @@ void SurfaceComposerAIDL::getDynamicDisplayInfoInternal(ui::DynamicDisplayInfo&
86398640
86408641 outInfo->activeDisplayModeId = info.activeDisplayModeId ;
86418642 outInfo->renderFrameRate = info.renderFrameRate ;
8643+ outInfo->hasArrSupport = info.hasArrSupport ;
86428644
86438645 outInfo->supportedColorModes .clear ();
86448646 outInfo->supportedColorModes .reserve (info.supportedColorModes .size ());
You can’t perform that action at this time.
0 commit comments