Merge "Use pending transaction for setting transform hint" into udc-dev
This commit is contained in:
@@ -3592,11 +3592,11 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
|
|||||||
&& !mTransitionController.useShellTransitionsRotation()) {
|
&& !mTransitionController.useShellTransitionsRotation()) {
|
||||||
if (deltaRotation != Surface.ROTATION_0) {
|
if (deltaRotation != Surface.ROTATION_0) {
|
||||||
updateSurfaceRotation(t, deltaRotation, null /* positionLeash */);
|
updateSurfaceRotation(t, deltaRotation, null /* positionLeash */);
|
||||||
t.setFixedTransformHint(mSurfaceControl,
|
getPendingTransaction().setFixedTransformHint(mSurfaceControl,
|
||||||
getWindowConfiguration().getDisplayRotation());
|
getWindowConfiguration().getDisplayRotation());
|
||||||
} else if (deltaRotation != mLastDeltaRotation) {
|
} else if (deltaRotation != mLastDeltaRotation) {
|
||||||
t.setMatrix(mSurfaceControl, 1, 0, 0, 1);
|
t.setMatrix(mSurfaceControl, 1, 0, 0, 1);
|
||||||
t.unsetFixedTransformHint(mSurfaceControl);
|
getPendingTransaction().unsetFixedTransformHint(mSurfaceControl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mLastDeltaRotation = deltaRotation;
|
mLastDeltaRotation = deltaRotation;
|
||||||
|
|||||||
@@ -596,7 +596,8 @@ class WindowToken extends WindowContainer<WindowState> {
|
|||||||
.build();
|
.build();
|
||||||
t.setPosition(leash, mLastSurfacePosition.x, mLastSurfacePosition.y);
|
t.setPosition(leash, mLastSurfacePosition.x, mLastSurfacePosition.y);
|
||||||
t.reparent(getSurfaceControl(), leash);
|
t.reparent(getSurfaceControl(), leash);
|
||||||
t.setFixedTransformHint(leash, getWindowConfiguration().getDisplayRotation());
|
getPendingTransaction().setFixedTransformHint(leash,
|
||||||
|
getWindowConfiguration().getDisplayRotation());
|
||||||
mFixedRotationTransformLeash = leash;
|
mFixedRotationTransformLeash = leash;
|
||||||
updateSurfaceRotation(t, rotation, mFixedRotationTransformLeash);
|
updateSurfaceRotation(t, rotation, mFixedRotationTransformLeash);
|
||||||
return mFixedRotationTransformLeash;
|
return mFixedRotationTransformLeash;
|
||||||
|
|||||||
Reference in New Issue
Block a user