summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2021-03-30 14:19:31 -0700
committer Alec Mouri <alecmouri@google.com> 2021-04-01 00:49:56 +0000
commita19a8960118341b4e1306d9e5c40b7c7f3acee43 (patch)
treea3e24550bfa9182c2b211407706db2b54c5b7bbc /libs/gui/BLASTBufferQueue.cpp
parent345c3c1be16ebfe3f1d0e823f5ddf1f1a7c35c70 (diff)
Store a wp GraphicBuffer pointer instead of an sp on LayerState
LayerStates may be persistently stored as part of an example layer stack in the predictor, so refrain from storing a ref-counted pointer and instead store the weak pointer. The GraphicBuffer is only used as part of testing the differences between two LayerStates to check if there was a buffer update, so we don't really need a strong reference. Also clean up some hashing and difference field computations, since the buffer was never really used for those so there's no reason to parameterize the skip fields. Bug: 183977995 Test: builds, boots Test: Observe no increase in ION meminfo after experimenting with device Change-Id: Ibfc74b4e794596bb8bb80487154522cf53a71e31
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions