Merge "Add wallpaper to sync set during collection" into udc-qpr-dev am: 5f2babc0ee

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

Change-Id: I0ddea767c90f4f85cdc6f6a80c8fffcce71ffc36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Marzia Favaro
2023-07-03 09:59:01 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 7 deletions

View File

@@ -615,12 +615,8 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
}
}
if (mParticipants.contains(wc)) return;
// Wallpaper is like in a static drawn state unless display may have changes, so exclude
// the case to reduce transition latency waiting for the unchanged wallpaper to redraw.
final boolean needSync = (!isWallpaper(wc) || mParticipants.contains(wc.mDisplayContent))
// Transient-hide may be hidden later, so no need to request redraw.
&& !isInTransientHide(wc);
if (needSync) {
// Transient-hide may be hidden later, so no need to request redraw.
if (!isInTransientHide(wc)) {
mSyncEngine.addToSyncSet(mSyncId, wc);
}
ChangeInfo info = mChanges.get(wc);

View File

@@ -5665,7 +5665,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
}
if (mIsWallpaper) {
// TODO(b/233286785): Add sync support to wallpaper.
return false;
return true;
}
// In the WindowContainer implementation we immediately mark ready
// since a generic WindowContainer only needs to wait for its