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

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

Change-Id: Ie6651ad9b72b2597c45f9c42a686d6c35df5aec5
This commit is contained in:
Wei Sheng Shih
2021-09-03 10:47:55 +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.
mSnapshot = null;
mSurfaceControl.release();
}
private void drawSizeMatchSnapshot() {
@@ -431,6 +432,7 @@ public class TaskSnapshotWindow {
mTransaction.setBuffer(mSurfaceControl, background);
}
mTransaction.apply();
childSurfaceControl.release();
}
/**