summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2020-05-28 16:49:18 -0700
committer Ady Abraham <adyabr@google.com> 2020-05-29 16:22:50 -0700
commit983e568b3c370659f11fcf76cbd45c61dfd8dc33 (patch)
tree2d1c016dce6a60a1a07f0be6d43ee1c75bb02687 /libs/gui/SurfaceControl.cpp
parentb74fe1dc23243f74ed6deb3f38457f818d8b5383 (diff)
SurfaceFlinger: keep layer history for inactive layers
The current implementation of layer history discards all the history if a layer is considered inactive. This leads to an issue in the scenario that a layer is posting infrequent updates so slow, that by the time we get the next buffer, the layer is considered inactive, and we bump the refresh rate to Max, instead of detecting that layer as infrequent. As a fix, we keep around the layer history even if it is inactive. To avoid cases where detect animations too late, we clear the history on touch event. Bug: 156654519 Test: add a new unit test that simulates the buffer pattern of a Netflix playback Change-Id: Ie076891806d74dde814fbbb3b1a73c38e0b2ae34
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions