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:
commit
f6df7d76ee
1 file changed
+7
-7
@@ -75,6 +75,13 @@ public class SurfaceTransactionApplier extends ReleaseCheck {
|
|||||||
if (view == null) {
|
if (view == null) {
|
||||||
return;
|
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++;
|
mLastSequenceNumber++;
|
||||||
final int toApplySeqNo = mLastSequenceNumber;
|
final int toApplySeqNo = mLastSequenceNumber;
|
||||||
@@ -85,13 +92,6 @@ public class SurfaceTransactionApplier extends ReleaseCheck {
|
|||||||
.sendToTarget();
|
.sendToTarget();
|
||||||
return;
|
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);
|
mTargetViewRootImpl.mergeWithNextTransaction(t, frame);
|
||||||
Message.obtain(mApplyHandler, MSG_UPDATE_SEQUENCE_NUMBER, toApplySeqNo, 0)
|
Message.obtain(mApplyHandler, MSG_UPDATE_SEQUENCE_NUMBER, toApplySeqNo, 0)
|
||||||
.sendToTarget();
|
.sendToTarget();
|
||||||
|
|||||||
Reference in new issue
Block a user