summaryrefslogtreecommitdiff
path: root/core/java/android/view/SurfaceControl.java
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2021-01-25 14:32:26 -0800
committerChavi Weingarten <chaviw@google.com>2021-02-05 22:36:25 +0000
commit32f2817bbdca2e8b1953aec7ef6784ae94d50775 (patch)
treeb2050890e60b080226b78365d4da284924ab19ec /core/java/android/view/SurfaceControl.java
parent114246c80e02be2ef9b9f390970033451e3d7f8a (diff)
Remove preserve surfaces
When using blast, there's no need to call preserve surfaces since the client can synchronize layer changes with the incoming buffer in the new size. If the client uses the WindowOrganizer.applySync call they can ensure they only update the layer geometry in the same transaction that the new buffer is submitted in. When removing preserveSurfaces, we can also remove reparentChildren since that was the only caller of reparentChildren Test: Split with SurfaceView Bug: 177557720 Change-Id: I4574ac0d3b8a63b13ac44846e729b73ca0f88f23
Diffstat (limited to 'core/java/android/view/SurfaceControl.java')
-rw-r--r--core/java/android/view/SurfaceControl.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java
index acd25077fb5a..98b4acd302cb 100644
--- a/core/java/android/view/SurfaceControl.java
+++ b/core/java/android/view/SurfaceControl.java
@@ -188,8 +188,6 @@ public final class SurfaceControl implements Parcelable {
IBinder displayToken, int mode);
private static native void nativeDeferTransactionUntil(long transactionObj, long nativeObject,
long barrierObject, long frame);
- private static native void nativeReparentChildren(long transactionObj, long nativeObject,
- long newParentObject);
private static native void nativeReparent(long transactionObj, long nativeObject,
long newParentNativeObject);
@@ -2970,15 +2968,6 @@ public final class SurfaceControl implements Parcelable {
}
/**
- * @hide
- */
- public Transaction reparentChildren(SurfaceControl sc, SurfaceControl newParent) {
- checkPreconditions(sc);
- nativeReparentChildren(mNativeObject, sc.mNativeObject, newParent.mNativeObject);
- return this;
- }
-
- /**
* Re-parents a given layer to a new parent. Children inherit transform (position, scaling)
* crop, visibility, and Z-ordering from their parents, as if the children were pixels within the
* parent Surface.