summaryrefslogtreecommitdiffstats
path: root/include/gui/ISurfaceComposer.h
diff options
context:
space:
mode:
authorRiley Andrews <riandrews@google.com>2014-09-09 22:16:38 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-09 22:16:38 +0000
commit25d10ce9ecdd5ffc558277456c27af5a2c8bcf64 (patch)
treee1604096b24224cd301557b050e6275df3a2a9ec /include/gui/ISurfaceComposer.h
parentadf754d5d5c1f180c3d05ff83303d4989bfe4537 (diff)
parent129dc8423da319d42af6ef71046c39ba59c0d878 (diff)
downloadframeworks_native-25d10ce9ecdd5ffc558277456c27af5a2c8bcf64.zip
frameworks_native-25d10ce9ecdd5ffc558277456c27af5a2c8bcf64.tar.gz
frameworks_native-25d10ce9ecdd5ffc558277456c27af5a2c8bcf64.tar.bz2
am 129dc842: am edb86f9f: Merge "Add rotation to surfaceflingers screen cap." into lmp-dev
* commit '129dc8423da319d42af6ef71046c39ba59c0d878': Add rotation to surfaceflingers screen cap.
Diffstat (limited to 'include/gui/ISurfaceComposer.h')
-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 d0031fb..430a409 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.
*