Home
last modified time | relevance | path

Searched refs:layerPeriod (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateConfigs.cpp98 std::pair<nsecs_t, nsecs_t> RefreshRateConfigs::getDisplayFrames(nsecs_t layerPeriod, in getDisplayFrames() argument
100 auto [quotient, remainder] = std::div(layerPeriod, displayPeriod); in getDisplayFrames()
156 const auto layerPeriod = layer.desiredRefreshRate.getPeriodNsecs(); in calculateLayerScoreLocked() local
162 while (layerPeriod > actualLayerPeriod + MARGIN_FOR_PERIOD_CALCULATION) { in calculateLayerScoreLocked()
167 static_cast<float>(layerPeriod) / static_cast<float>(actualLayerPeriod)); in calculateLayerScoreLocked()
175 getDisplayFrames(layerPeriod, displayPeriod); in calculateLayerScoreLocked()
184 return (static_cast<float>(layerPeriod) / static_cast<float>(displayPeriod)) * in calculateLayerScoreLocked()
DRefreshRateConfigs.h383 std::pair<nsecs_t, nsecs_t> getDisplayFrames(nsecs_t layerPeriod, nsecs_t displayPeriod) const;