summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2017-02-13 12:28:24 -0800
committer Chia-I Wu <olv@google.com> 2017-03-10 10:36:58 -0800
commitaaff73f92a2fcadda8c765eb9b02f2849418a873 (patch)
treee5d14b6384d24a8a12ab3ac2e082431199e2b22b /libs/gui/ConsumerBase.cpp
parentd7c99dd43d9055a741793916cf83c6597946076e (diff)
surfaceflinger: simplify HWC buffer cache clean up
When a Layer is no longer connected, we destroy the associated HWC layers on next call to SurfaceFlinger::rebuildLayerStacks or when the Layer is destroyed. There is no need to listen to onBuffersReleased. Besides, we need to perform the cleanup from the main thread as we only talk to HWC process from the main thread. While at it, move HWComposerBufferCache to its own files. Bug: 35320590 Test: manual Change-Id: Ifa32f24076b094c8fa9cda8572b03d5bfb8e0b93
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions