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 | beabe75a842d521b005999460d3a6361ab32108e (patch) | |
tree | 0f94af077e03d50c02a52f1817b2ad638c5d0106 /include | |
parent | 234e42df5fac958ed9f15aae6005dd72e4bdf08a (diff) | |
parent | dce21a3e274af1369ce284b7ee05b928a8bb3e11 (diff) | |
download | frameworks_base-beabe75a842d521b005999460d3a6361ab32108e.zip frameworks_base-beabe75a842d521b005999460d3a6361ab32108e.tar.gz frameworks_base-beabe75a842d521b005999460d3a6361ab32108e.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, |