mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Creating the transaction on the UI thread" into tm-dev am: 279911fafc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18591002 Change-Id: Id4e379b1d90705e6048b732658bf7bc89e37c791 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -75,6 +75,13 @@ public class SurfaceTransactionApplier extends ReleaseCheck {
|
||||
if (view == null) {
|
||||
return;
|
||||
}
|
||||
Transaction t = new Transaction();
|
||||
for (int i = params.length - 1; i >= 0; i--) {
|
||||
SurfaceParams surfaceParams = params[i];
|
||||
if (surfaceParams.surface.isValid()) {
|
||||
surfaceParams.applyTo(t);
|
||||
}
|
||||
}
|
||||
|
||||
mLastSequenceNumber++;
|
||||
final int toApplySeqNo = mLastSequenceNumber;
|
||||
@@ -85,13 +92,6 @@ public class SurfaceTransactionApplier extends ReleaseCheck {
|
||||
.sendToTarget();
|
||||
return;
|
||||
}
|
||||
Transaction t = new Transaction();
|
||||
for (int i = params.length - 1; i >= 0; i--) {
|
||||
SurfaceParams surfaceParams = params[i];
|
||||
if (surfaceParams.surface.isValid()) {
|
||||
surfaceParams.applyTo(t);
|
||||
}
|
||||
}
|
||||
mTargetViewRootImpl.mergeWithNextTransaction(t, frame);
|
||||
Message.obtain(mApplyHandler, MSG_UPDATE_SEQUENCE_NUMBER, toApplySeqNo, 0)
|
||||
.sendToTarget();
|
||||
|
||||
Reference in New Issue
Block a user