OSDN Git Service

SF: Fix duplicate callbacks from mirrored layers
authorVishnu Nair <vishnun@google.com>
Fri, 26 Nov 2021 17:24:11 +0000 (09:24 -0800)
committerVishnu Nair <vishnun@google.com>
Mon, 29 Nov 2021 18:18:02 +0000 (18:18 +0000)
commit3bb11d07d941a7db96eefd389862fa1d87c810fc
tree50e94f389a56a68841a477b898b26f535e569d5d
parent3316c9775acab304c5f790b6fa48a576563b7bcc
SF: Fix duplicate callbacks from mirrored layers

When cloning layers, we would also clone the layer's
callback handles which resulted in SF emitting duplicate
callbacks.

Test: presubmit
Test: launcher does not ANR when switching wallpapers with screen recording enabled
Bug: 205922358

Change-Id: Ic0435164f27d9bca7f80fc57d9021a9f544c936f
services/surfaceflinger/BufferLayer.cpp
services/surfaceflinger/BufferStateLayer.cpp
services/surfaceflinger/Layer.cpp
services/surfaceflinger/Layer.h