Searched refs:layerPeriod (Results 1 – 2 of 2) sorted by relevance
98 std::pair<nsecs_t, nsecs_t> RefreshRateConfigs::getDisplayFrames(nsecs_t layerPeriod, in getDisplayFrames() argument100 auto [quotient, remainder] = std::div(layerPeriod, displayPeriod); in getDisplayFrames()156 const auto layerPeriod = layer.desiredRefreshRate.getPeriodNsecs(); in calculateLayerScoreLocked() local162 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()
383 std::pair<nsecs_t, nsecs_t> getDisplayFrames(nsecs_t layerPeriod, nsecs_t displayPeriod) const;