summaryrefslogtreecommitdiffstats
path: root/include/surfaceflinger
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-09-24 18:13:22 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-24 18:13:22 -0700
commitd95fec08916698f7bdd9f4b293d418ae4b4f60c5 (patch)
treed41977f1c885afe6749debec7b6caff27b09e12b /include/surfaceflinger
parent960099572d97df03786927974e760070fca3e1ef (diff)
parent495ad4f22096aa172d025c16c25497e7dad8f2bd (diff)
downloadframeworks_base-d95fec08916698f7bdd9f4b293d418ae4b4f60c5.zip
frameworks_base-d95fec08916698f7bdd9f4b293d418ae4b4f60c5.tar.gz
frameworks_base-d95fec08916698f7bdd9f4b293d418ae4b4f60c5.tar.bz2
am 495ad4f2: am beabe75a: Merge changes I1f7c4535,I741c68a2 into gingerbread
Merge commit '495ad4f22096aa172d025c16c25497e7dad8f2bd' * commit '495ad4f22096aa172d025c16c25497e7dad8f2bd': simple test app for screen capture API add support for [1974164] Be able to take a screen shot on the device
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r--include/surfaceflinger/ISurfaceComposer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/surfaceflinger/ISurfaceComposer.h b/include/surfaceflinger/ISurfaceComposer.h
index dd44aa5..76307b2 100644
--- a/include/surfaceflinger/ISurfaceComposer.h
+++ b/include/surfaceflinger/ISurfaceComposer.h
@@ -110,6 +110,13 @@ public:
*/
virtual void bootFinished() = 0;
+ /* Capture the specified screen. requires READ_FRAME_BUFFER permission
+ * This function will fail if there is a secure window on screen.
+ */
+ virtual status_t captureScreen(DisplayID dpy,
+ sp<IMemoryHeap>* heap,
+ uint32_t* width, uint32_t* height, PixelFormat* format) = 0;
+
/* Signal surfaceflinger that there might be some work to do
* This is an ASYNCHRONOUS call.
*/
@@ -133,7 +140,8 @@ public:
SET_ORIENTATION,
FREEZE_DISPLAY,
UNFREEZE_DISPLAY,
- SIGNAL
+ SIGNAL,
+ CAPTURE_SCREEN
};
virtual status_t onTransact( uint32_t code,