commit | 9f6171e7b2711e539f9c7aa3b8bc04a46f4d0df2 | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Fri Jun 07 16:33:50 2019 -0700 |
committer | chaviw <chaviw@google.com> | Tue Jun 25 17:09:03 2019 -0700 |
tree | 632613b7425f4f30af56b5e1ad009b47d1ed6ed8 | |
parent | 95013b0b6be1aef345c6f1997491fa83ebaf5b1b [diff] [blame] |
Deleted SurfaceControl.remove method Updated all callers of SC.remove to use Transaction.remove(sc) and apply immediately since that's the equivalent. Eventually, the transactions that contain remove could combine with other transactions if it makes sense to avoid duplicate applies. Test: SurfaceControlTest Change-Id: I13c6ec86de6a6d60f142c2269337557510dd006d
diff --git a/services/core/java/com/android/server/wm/AccessibilityController.java b/services/core/java/com/android/server/wm/AccessibilityController.java index 6b7187e..a70aa38 100644 --- a/services/core/java/com/android/server/wm/AccessibilityController.java +++ b/services/core/java/com/android/server/wm/AccessibilityController.java
@@ -907,7 +907,7 @@ } public void releaseSurface() { - mSurfaceControl.remove(); + mService.mTransactionFactory.make().remove(mSurfaceControl).apply(); mSurface.release(); }