summaryrefslogtreecommitdiff
path: root/opengl/libagl/TextureObjectManager.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2020-06-12 22:29:11 +0200
committer Marin Shalamanov <shalamanov@google.com> 2020-06-17 16:14:57 +0000
commitc75b0777fe7ff3bfd877f8b9c0ed04a31cbf9c09 (patch)
treea575188a31efb258175ab97f821ceeca3d902ae8 /opengl/libagl/TextureObjectManager.cpp
parent059a108e178335d5a62e5d76ed809f67300b006b (diff)
[SF] Don't cache VSYNC state in SF
This change removes the cached state in SF which is not managed properly. This state is also cached in HWComposer. More specifically, SF caches the primary display vsync state in mHWCVsyncState. However executing DisplayDevice->disconnect() turns off vsync w/o updating the cache. This way if we process a subsequent hotplug event for the primary display we can end up a situation where the cached state is "enabled", but the actual state is "disabled". Then Scheduler won't be able to turn on HWC VSYNC again. Test: manually test on a TV which sends two subsequent hotplug events at boot. Verify that after applying this change the TV doesn't run at 1 fps. Test: atest libsurfaceflinger_unittest Bug: 156331731 Change-Id: I85e72d8d5ba85f0a5f4b4f27a200c1bde4e0b9f4
Diffstat (limited to 'opengl/libagl/TextureObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions