From c3ebe66b49cfba035e1fd0e160a13db38eb81b0e Mon Sep 17 00:00:00 2001 From: Riley Andrews Date: Thu, 4 Sep 2014 16:20:31 -0700 Subject: Add rotation to surfaceflingers screen cap. + This is needed so that activity manager does not have to do cpu side rotations when capturing recents thumbnails. Change-Id: If998008e675ad01305db8399fd643cf4608b7025 --- include/gui/ISurfaceComposer.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/gui') diff --git a/include/gui/ISurfaceComposer.h b/include/gui/ISurfaceComposer.h index 9f1937b..742fc83 100644 --- a/include/gui/ISurfaceComposer.h +++ b/include/gui/ISurfaceComposer.h @@ -62,6 +62,13 @@ public: eDisplayIdHdmi = 1 }; + enum Rotation { + eRotateNone = 0, + eRotate90 = 1, + eRotate180 = 2, + eRotate270 = 3 + }; + /* create connection with surface flinger, requires * ACCESS_SURFACE_FLINGER permission */ @@ -130,7 +137,8 @@ public: const sp& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, uint32_t minLayerZ, uint32_t maxLayerZ, - bool useIdentityTransform) = 0; + bool useIdentityTransform, + Rotation rotation = eRotateNone) = 0; /* Clears the frame statistics for animations. * -- cgit v1.1