Merge changes I4fdf368e,Ibc6be890 into rvc-dev am: 48dc192499 am: 6affc2707b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11932511 Change-Id: Id6f2d7d019f9db43101eea6a94b79b8e35ef2825
This commit is contained in:
@@ -177,6 +177,17 @@ public class SurfaceControlViewHost {
|
|||||||
mAccessibilityEmbeddedConnection = mViewRoot.getAccessibilityEmbeddedConnection();
|
mAccessibilityEmbeddedConnection = mViewRoot.getAccessibilityEmbeddedConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected void finalize() throws Throwable {
|
||||||
|
// We aren't on the UI thread here so we need to pass false to
|
||||||
|
// doDie
|
||||||
|
mViewRoot.die(false /* immediate */);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a SurfacePackage for the root SurfaceControl of the embedded hierarchy.
|
* Return a SurfacePackage for the root SurfaceControl of the embedded hierarchy.
|
||||||
* Rather than be directly reparented using {@link SurfaceControl.Transaction} this
|
* Rather than be directly reparented using {@link SurfaceControl.Transaction} this
|
||||||
@@ -273,6 +284,6 @@ public class SurfaceControlViewHost {
|
|||||||
*/
|
*/
|
||||||
public void release() {
|
public void release() {
|
||||||
// ViewRoot will release mSurfaceControl for us.
|
// ViewRoot will release mSurfaceControl for us.
|
||||||
mViewRoot.die(false /* immediate */);
|
mViewRoot.die(true /* immediate */);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user