Merge "Immediately apply transaction when hw rendering is disabled" into sc-v2-dev am: 6ee187a370 am: 2d20900b33

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16274131

Change-Id: I1b77e62b494f89a1577cd1e8dfe666d6d7319666
This commit is contained in:
Chavi Weingarten
2021-11-16 21:16:05 +00:00
committed by Automerger Merge Worker

View File

@@ -10424,7 +10424,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));