diff options
author | 2020-08-10 18:33:24 +0000 | |
---|---|---|
committer | 2020-08-10 18:33:24 +0000 | |
commit | de7a38f44ba8397a0ce38d00ffe12518f837e7ce (patch) | |
tree | c8a979ee828287b5aa6dcad1e9d238f3f19cb109 /libs/gui/LayerState.cpp | |
parent | 772bb8f14c633f53dab83299516d704927f83a6d (diff) | |
parent | c6ad8afa768607852a1ad2c937b4687e947d6fca (diff) |
Merge "Remove rotation and use flag useIdentityTransform for screenshots."
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index d07d4352ec..7742503575 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -532,23 +532,17 @@ status_t DisplayCaptureArgs::write(Parcel& output) const { status |= output.writeStrongBinder(displayToken) ?: output.writeUint32(width) ?: output.writeUint32(height) ?: - output.writeBool(useIdentityTransform) ?: - output.writeInt32(static_cast<int32_t>(rotation)); + output.writeBool(useIdentityTransform); return status; } status_t DisplayCaptureArgs::read(const Parcel& input) { status_t status = CaptureArgs::read(input); - int32_t rotationInt = 0; - status |= input.readStrongBinder(&displayToken) ?: input.readUint32(&width) ?: input.readUint32(&height) ?: - input.readBool(&useIdentityTransform) ?: - input.readInt32(&rotationInt); - - rotation = ui::toRotation(rotationInt); + input.readBool(&useIdentityTransform); return status; } |