diff options
| author | 2021-09-07 16:17:13 -0500 | |
|---|---|---|
| committer | 2021-09-07 16:23:17 -0500 | |
| commit | 29bc5360a8c3e99b864c1b4b7b7bb981ae6d34f1 (patch) | |
| tree | 0011d9765002d35470aad8866b8f786f75ba035a /libs/battery/LongArrayMultiStateCounterTest.cpp | |
| parent | cab54c4634e7aa26e5ad633f51cad91d454aca91 (diff) | |
Store jankListener and surfaceStatListeners by layerId
Both maps were storing the listener using the SurfaceControl handle as
the key. This isn't necessary since we just need some unique identifier
for the layer. Intead, use the layerId which is safer since it won't
force the maps to hold a reference to the object.
Test: JankListener still works
Bug: 196171638
Change-Id: Ie9a2d0357dd73af7ee6f7737650451f7fd6ca6d3
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions