summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2020-05-21 14:20:33 -0700
committer Ady Abraham <adyabr@google.com> 2020-05-21 16:16:56 -0700
commit39db2c9b075964d28818f187ba417dc13698b680 (patch)
tree75c5216a3e68aa50b074762226e63d61c7315548 /libs/gui/SurfaceControl.cpp
parenteeb74561b64e19617c4df9a54a29db443952c61a (diff)
SurfaceFlinger: tune infrequent detection logic more
A layer will be considered frequent unless proven otherwise, in order to make sure animations will change the refresh rate as soon as possible. In addition, if a layer is classified infrequent, then we will keep it infrequent until we get a burst of frames. These two policies combined allow us to differentiate between an animating layer and a layer that usually doesn't animate. Bug: 157096772 Test: Play 24fps video in YouTube PIP mode and rotate the device - no jank Test: Chrome playing video - no refresh rate switching Test: Cursor blinking on Messages - switch to lowest refresh rate quickly Change-Id: I3629b6e4786cd43919f51465e347f2abb52234d9
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions