diff options
author | Mathias Agopian <mathias@google.com> | 2010-09-24 18:07:41 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-24 18:07:41 -0700 |
commit | 495ad4f22096aa172d025c16c25497e7dad8f2bd (patch) | |
tree | b8e2e16c2058b96b563102abc46bfbba0863e352 /include | |
parent | c388844d50a67ecd8eb93d29d618bae1fa3a3c5d (diff) | |
parent | beabe75a842d521b005999460d3a6361ab32108e (diff) | |
download | frameworks_base-495ad4f22096aa172d025c16c25497e7dad8f2bd.zip frameworks_base-495ad4f22096aa172d025c16c25497e7dad8f2bd.tar.gz frameworks_base-495ad4f22096aa172d025c16c25497e7dad8f2bd.tar.bz2 |
am beabe75a: Merge changes I1f7c4535,I741c68a2 into gingerbread
Merge commit 'beabe75a842d521b005999460d3a6361ab32108e' into gingerbread-plus-aosp
* commit 'beabe75a842d521b005999460d3a6361ab32108e':
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, |