commit | 29e2540607394bfb8bfbd00f9d00b276aac7e375 | [log] [tgz] |
---|---|---|
author | Marin Shalamanov <shalamanov@google.com> | Wed Apr 07 21:09:58 2021 +0200 |
committer | Marin Shalamanov <shalamanov@google.com> | Wed Apr 07 21:23:00 2021 +0200 |
tree | 9ac236f2c2e6ff2173754f7330a7222613101eeb | |
parent | 2ce1b7e95170f000a25175423af7732abf0294ab [diff] [blame] |
Add comment for min refresh rate vote Bug: 135718869 Test: n/a Change-Id: Ib3f0d0887e1dde3f9f2961f14ead49007335d365
diff --git a/services/surfaceflinger/Scheduler/LayerInfo.cpp b/services/surfaceflinger/Scheduler/LayerInfo.cpp index 4b4cdae..c00c2a0 100644 --- a/services/surfaceflinger/Scheduler/LayerInfo.cpp +++ b/services/surfaceflinger/Scheduler/LayerInfo.cpp
@@ -232,6 +232,8 @@ if (!isFrequent(now)) { ALOGV("%s is infrequent", mName.c_str()); mLastRefreshRate.animatingOrInfrequent = true; + // Infrequent layers vote for mininal refresh rate for + // battery saving purposes and also to prevent b/135718869. return {LayerHistory::LayerVoteType::Min, Fps(0.0f)}; }