Merge "Release the child layer on TaskSnapshot" into sc-v2-dev

This commit is contained in:
Wei Sheng Shih
2021-09-03 10:11:37 +00:00
committed by Android (Google) Code Review

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();
}
/**