diff options
author | Riley Andrews <riandrews@google.com> | 2014-09-04 16:20:31 -0700 |
---|---|---|
committer | Riley Andrews <riandrews@google.com> | 2014-09-09 03:51:16 +0000 |
commit | c3ebe66b49cfba035e1fd0e160a13db38eb81b0e (patch) | |
tree | e19c408d47ebbfa8512885dd593c0f1c598c1215 /include/gui | |
parent | 7eff26a02aeb35d6c48e1af8d9bebcc838ad1fd2 (diff) | |
download | frameworks_native-c3ebe66b49cfba035e1fd0e160a13db38eb81b0e.zip frameworks_native-c3ebe66b49cfba035e1fd0e160a13db38eb81b0e.tar.gz frameworks_native-c3ebe66b49cfba035e1fd0e160a13db38eb81b0e.tar.bz2 |
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
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/ISurfaceComposer.h | 10 |
1 files changed, 9 insertions, 1 deletions
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<IGraphicBufferProducer>& 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. * |