summaryrefslogtreecommitdiff
path: root/core/java/android/view/WindowManagerGlobal.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/WindowManagerGlobal.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/WindowManagerGlobal.java')
-rw-r--r--core/java/android/view/WindowManagerGlobal.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/java/android/view/WindowManagerGlobal.java b/core/java/android/view/WindowManagerGlobal.java
index dd0ab6503a8a..170124e348c9 100644
--- a/core/java/android/view/WindowManagerGlobal.java
+++ b/core/java/android/view/WindowManagerGlobal.java
@@ -116,14 +116,6 @@ public final class WindowManagerGlobal {
*/
public static final int RELAYOUT_INSETS_PENDING = 0x1;
- /**
- * Flag for relayout: the client may be currently using the current surface,
- * so if it is to be destroyed as a part of the relayout the destroy must
- * be deferred until later. The client will call performDeferredDestroy()
- * when it is okay.
- */
- public static final int RELAYOUT_DEFER_SURFACE_DESTROY = 0x2;
-
public static final int ADD_FLAG_IN_TOUCH_MODE = 0x1;
public static final int ADD_FLAG_APP_VISIBLE = 0x2;
public static final int ADD_FLAG_USE_TRIPLE_BUFFERING = 0x4;