summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
authorWiwit Rifa'i <wiwitrifai@google.com>2021-09-30 21:06:55 +0800
committerYichi Chen <yichichen@google.com>2021-11-02 00:22:18 +0000
commitb234a2d0c66774acced6e0c93a824a88d628096d (patch)
tree9740ab51249bfacf28c3a86067b063deb1378145 /hwc3/impl/HalImpl.cpp
parent4745dffda510018e6764e27ce10cadfc23113713 (diff)
libhwc2.1: invalidate mTargetBuffer after ComposerClient has died
We need to invalidate the client target buffer when ComposerClient has died because it will automatically free the client target buffer. We also need to invalidate the skip static layer flag so that we have to get a new client target buffer first, before we can skip the static layers. We can use unregisterEventCallback_2_4 as a sign of ComposerClient's death since it will be called during the destructor of ~ComposerClientImpl. Bug: 188745089 Test: kill SF process, and mTargetBuffer should be invalidated Test: mTargetBuffer should not be accessed after it has been invalidated. Change-Id: I4b12b6fa96dbd5a1538a91e718e96d33167520a8
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
0 files changed, 0 insertions, 0 deletions