summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Steven Thomas <steventhomas@google.com> 2020-05-18 17:30:35 -0700
committer Steven Thomas <steventhomas@google.com> 2020-05-18 18:56:19 -0700
commitdebafed2c70484484fa694bd4da53826a6c8168a (patch)
tree1e3f1557ed33a72f836b63e09274e289dc9f0487 /libs/gui/SurfaceControl.cpp
parent9b5bf0f42d57387a3451aa9eb9bfb1075fcb91a4 (diff)
With content detection off, prefer default frame rate
When content detection is off, or when we have no layer information to make a decision, prefer the default frame rate. Bug: 154648391 Test: - Modified a Pixel 4 to turn off content detection, idle, touch, and power boost. Confirmed that, without this CL, we have bad behavior where calls to setFrameRate() persist after the layer goes away, and that this CL fixes that behavior. - Modified and enhanced the "no layers" unit test in RefreshRateConfigsTest.cpp. Change-Id: I2fd0d64a6ad369580cbb2ebf91cbbed7c31e0281
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions