summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNaomi Musgrave <nmusgrave@google.com>2021-08-25 11:35:27 +0100
committerNaomi Musgrave <nmusgrave@google.com>2021-08-25 16:19:20 +0000
commit162f78c838c484af0cd10e4755a724882dcc027d (patch)
tree2a127e23c7a0d5ef5017e70f8a0c815f447e68b6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0e08f8139387d635fe111fecd0acbf722f59acd1 (diff)
[MediaProjection] Immediately clean up mirrored surface.
When MediaProjection is stopped, the VirtualDisplay used to capture content is released. This triggers DisplayContent#remove, for the DisplayContent associated with that VirtualDisplay. Clean up the mirrored surface if the DisplayContent is used for layer mirroring, to prevent an eventual out of memory error when MediaProjection is started/stopped several times, and the garbage collection has not yet cleared up unusued surfaces. Note the surfaces would be removed eventually, since they no longer have a reference. Bug: 197576836 Test: manual Change-Id: Ic28c0b3deeb1c332c36feaf661342c68c28db192
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions