summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorRiley Andrews <riandrews@google.com>2014-09-09 19:40:52 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-09 19:40:53 +0000
commitedb86f9f681e082a64a670814ee4d73ccf39942a (patch)
tree21be088584d8c515f62dfb1dd24f160a9ace0c56 /include/gui
parent464e539cd3e931aaca99a67d0addc6d68bd96b3d (diff)
parentc3ebe66b49cfba035e1fd0e160a13db38eb81b0e (diff)
downloadframeworks_native-edb86f9f681e082a64a670814ee4d73ccf39942a.zip
frameworks_native-edb86f9f681e082a64a670814ee4d73ccf39942a.tar.gz
frameworks_native-edb86f9f681e082a64a670814ee4d73ccf39942a.tar.bz2
Merge "Add rotation to surfaceflingers screen cap." into lmp-dev
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/ISurfaceComposer.h10
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.
*