summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2019-01-11 13:07:19 -0800
committer chaviw <chaviw@google.com> 2019-01-11 13:12:44 -0800
commitf206b66d770b2221384431cd5fd221266b891461 (patch)
tree8b9af5f9a03ba400703d871153ed39d49e06b30f /libs/gui/BufferQueueThreadState.cpp
parent92357f3949442023d821600b71d63339e3d632d5 (diff)
Mark refreshPending as false when calling the fakeVsync
The fake vsync needs to get called to ensure dequeueBuffer doesn't get stuck. However, latchBuffer will not call updateTexImage if the layer thinks it already has a latched buffer (mRefreshPending = true). Since mRefreshPending is normally set to false in onPreComposition, removed layers will not get updated since they are no longer in the layer hierarchy. This change sets refreshPending to false for removed layers to ensure that latchBuffer will attempt to call updateTexImage, allow dequeueBuffer to continue. Change-Id: If2a45b2d4cec069068466e0192355999ec265a66 Fixes: 119310197 Test: Open camera, press back, open camera again quickly
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions