Merge "Release the child layer on TaskSnapshot" into sc-v2-dev am: 10b3662274

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15556988

Change-Id: Iec7c2958149daa50ad1f2d6f161ece7a850c4a4b
This commit is contained in:
Wei Sheng Shih
2021-09-03 10:34:10 +00:00
committed by Automerger Merge Worker

View File

@@ -364,6 +364,7 @@ public class TaskSnapshotWindow {
// In case window manager leaks us, make sure we don't retain the snapshot. // In case window manager leaks us, make sure we don't retain the snapshot.
mSnapshot = null; mSnapshot = null;
mSurfaceControl.release();
} }
private void drawSizeMatchSnapshot() { private void drawSizeMatchSnapshot() {
@@ -431,6 +432,7 @@ public class TaskSnapshotWindow {
mTransaction.setBuffer(mSurfaceControl, background); mTransaction.setBuffer(mSurfaceControl, background);
} }
mTransaction.apply(); mTransaction.apply();
childSurfaceControl.release();
} }
/** /**