From 6d50d440834adbe9e1ca0d35452ea271ed72f308 Mon Sep 17 00:00:00 2001 From: Lee Jones Date: Wed, 31 Jan 2018 08:51:32 +0000 Subject: [PATCH] android: service: platform_service: Read rotation angle from parcel When passing window state, currently only the frame location and stack & task IDs are contained in the parcel. This patch also receives the new 'rotation_angle' attribute. This patch is critical since it ensures each '4 Byte' value in this strongly ordered sequence is extracted at the right time, in the correct way. Signed-off-by: Lee Jones --- android/service/platform_service.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/android/service/platform_service.cpp b/android/service/platform_service.cpp index 8e2c57a..0a19818 100644 --- a/android/service/platform_service.cpp +++ b/android/service/platform_service.cpp @@ -49,6 +49,7 @@ anbox::PlatformApiStub::WindowStateUpdate::Window PlatformService::unpack_window auto frame_bottom = data.readInt32(); auto task_id = data.readInt32(); auto stack_id = data.readInt32(); + auto rotation_angle = data.readInt32(); return anbox::PlatformApiStub::WindowStateUpdate::Window{ -1, // Display id will be added by the caller