commit | 5ea304db749591f9bc1357eb486ba5595ac6ff01 | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Mon Feb 04 16:04:55 2019 -0800 |
committer | Robert Carr <racarr@google.com> | Tue Feb 05 13:29:16 2019 -0800 |
tree | edf379d7a7c3d36792e4961220a5bdaabe1dfc04 | |
parent | cc6d483974c76d4ce29ad23407c12a5f70632d07 [diff] [blame] |
Replace SurfaceControl#destroy with #remove Because there may be other references, #destroy does not actually destroy a Surface. We try and make this more clear in the naming. Bug: 111297488 Test: Builds Change-Id: I3a395abf4449de27fac298e37a96eb54c204c42f
diff --git a/services/core/java/com/android/server/wm/ScreenRotationAnimation.java b/services/core/java/com/android/server/wm/ScreenRotationAnimation.java index 3947bd4..84cd8d1 100644 --- a/services/core/java/com/android/server/wm/ScreenRotationAnimation.java +++ b/services/core/java/com/android/server/wm/ScreenRotationAnimation.java
@@ -626,7 +626,7 @@ if (SHOW_TRANSACTIONS || SHOW_SURFACE_ALLOC) Slog.i(TAG_WM, " FREEZE " + mSurfaceControl + ": DESTROY"); - mSurfaceControl.destroy(); + mSurfaceControl.remove(); mSurfaceControl = null; } if (mCustomBlackFrame != null) {