summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2020-03-06 14:57:26 -0800
committer Ady Abraham <adyabr@google.com> 2020-03-09 17:22:40 -0700
commit5b8afb5ae3d96a7c82920fada3a5f12f3bcc6bdf (patch)
treeb763341724c9fdbd9f2923dd3756d72a427b26ef /vulkan/libvulkan/api.cpp
parent6fb599bf5b3a1b33c49dbe97c5afab8901245928 (diff)
SurfaceFlinger: treat the desiredRefreshRate of ExplicitDefault as max
When a an app calls to ANativeWindow_setFrameRate(..., ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT) it usually uses the frame render time to calculate the desired refresh rate. Change the platform side algorithm to consider the desired refresh rate in that case to the highest frame production rate. Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest Bug: 147516364 Bug: 150977265 Change-Id: Icda006de0aeb22da8244baee936947495f813e1b
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions