diff options
author | Mathias Agopian <mathias@google.com> | 2010-09-24 18:02:10 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-09-24 18:02:10 -0700 |
commit | 8405dff685a804f39f1b7fccc79d28dac9b457c3 (patch) | |
tree | 82bbdeddb300c6de3f9f5bd147a402153ead3c25 /include | |
parent | 84b804678e54cdf8c84aa9f05c395457479662fe (diff) | |
parent | 06e7056660d65d4b0bbe1bb2cbf3e779074dbd9f (diff) | |
download | frameworks_native-8405dff685a804f39f1b7fccc79d28dac9b457c3.zip frameworks_native-8405dff685a804f39f1b7fccc79d28dac9b457c3.tar.gz frameworks_native-8405dff685a804f39f1b7fccc79d28dac9b457c3.tar.bz2 |
Merge changes I1f7c4535,I741c68a2 into gingerbread
* changes:
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')
-rw-r--r-- | include/surfaceflinger/ISurfaceComposer.h | 10 |
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, |