summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2020-06-26 09:32:43 -0700
committer Ady Abraham <adyabr@google.com> 2020-06-26 12:56:02 -0700
commitaae5ed5b7ad78f4a6fba62556d875ae95e7f9987 (patch)
tree1d3bbb3903ed342291631ed1c0377182ab235284 /vulkan/libvulkan/api.cpp
parentf4facf26144de0efcdb3806e6fc852b5be9c9501 (diff)
SurfaceFlinger: only focused layers can use appRequestRange
When DisplayManager sets the DisplayConfigsSpecs with a policy that the appRequestRange is broader than the primaryRange, it means that an app can choose a refresh rate from the appRequestRange and not from the primaryRange only if that app explicitly specified a frame rate using setFrameRate API. However, to avoid cases where we switch the refresh rate back and forth from the two ranges, we are allowing only applications that their window is focused from WindowManager's perspective to select refresh rate out the primaryRange. This matches the behavior of an application that sets the preferredDisplayModeId. Bug: 144307188 Bug: 159940172 Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest Test: YouTube in PIP mode while device is restricted by primaryRange Change-Id: I26a9690210bb5771bd8aae2bff301031617f7c8f
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions