Merge "Release the child layer on TaskSnapshot" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
10b3662274
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user