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:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user