diff options
author | qctecmdr <qctecmdr@localhost> | 2021-09-12 22:28:55 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2021-09-12 22:28:55 -0700 |
commit | 4eea103120790f75626840103ec7f1505d1e5b57 (patch) | |
tree | 33d6311551c3223599a0a0f56dfacdc3f35fb03a | |
parent | 56fb1052841d19f3619289f6e0ae12c6424c2018 (diff) | |
parent | 52bcc36adcea085e0750e22c3643bfc8573b15c1 (diff) |
Merge "composer: Send large comp cycle hint only for higher fps"
-rw-r--r-- | composer/hwc_display_builtin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/composer/hwc_display_builtin.cpp b/composer/hwc_display_builtin.cpp index 486534a7..7d1cdf94 100644 --- a/composer/hwc_display_builtin.cpp +++ b/composer/hwc_display_builtin.cpp @@ -1648,6 +1648,13 @@ void HWCDisplayBuiltIn::SetCpuPerfHintLargeCompCycle() { return; } + //Send large comp cycle hint only for fps >= 90 + if (active_refresh_rate_ < 90) { + DLOGV_IF(kTagResources, "Skip large comp cycle hint for current fps - %u", + active_refresh_rate_); + return; + } + for (auto hwc_layer : layer_set_) { Layer *layer = hwc_layer->GetSDMLayer(); if (layer->composition == kCompositionGPU) { |