diff options
| author | 2021-11-16 20:57:49 +0000 | |
|---|---|---|
| committer | 2021-11-16 20:57:49 +0000 | |
| commit | 2d20900b33479e752935089c1dbb0b96773e755e (patch) | |
| tree | b3480ed6cb5155457c1c203c3b24f0e3c43e5f2a | |
| parent | 412d897ff6c1920f1b49daed4f7592056f008735 (diff) | |
| parent | 6ee187a370c7bc8707df184ca9d31fe42db58fa6 (diff) | |
Merge "Immediately apply transaction when hw rendering is disabled" into sc-v2-dev am: 6ee187a370
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16274131
Change-Id: I147e5ccc971c5e8a7005cbe7ed3e5b324f400f05
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index b0b5bb8870c6..cdfd7bea1a82 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -208,13 +208,13 @@ import java.io.PrintWriter; import java.io.StringWriter; import java.lang.ref.WeakReference; import java.util.ArrayList; -import java.util.function.Consumer; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Objects; import java.util.Queue; import java.util.concurrent.CountDownLatch; +import java.util.function.Consumer; /** * The top of a view hierarchy, implementing the needed protocol between View @@ -10518,7 +10518,7 @@ public final class ViewRootImpl implements ViewParent, @Override public boolean applyTransactionOnDraw(@NonNull SurfaceControl.Transaction t) { - if (mRemoved) { + if (mRemoved || !isHardwareEnabled()) { t.apply(); } else { registerRtFrameCallback(frame -> mergeWithNextTransaction(t, frame)); |