Merge "ActivityRecordInputSink: Ensure timely release of SurfaceControl" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a5e6d1e6b3
@@ -3967,6 +3967,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
||||
} else {
|
||||
onRemovedFromDisplay();
|
||||
}
|
||||
mActivityRecordInputSink.releaseSurfaceControl();
|
||||
|
||||
super.removeImmediately();
|
||||
}
|
||||
|
||||
|
||||
@@ -99,4 +99,11 @@ class ActivityRecordInputSink {
|
||||
return inputWindowHandle;
|
||||
}
|
||||
|
||||
void releaseSurfaceControl() {
|
||||
if (mSurfaceControl != null) {
|
||||
mSurfaceControl.release();
|
||||
mSurfaceControl = null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user