OSDN Git Service

add support for [1974164] Be able to take a screen shot on the device
authorMathias Agopian <mathias@google.com>
Fri, 24 Sep 2010 18:26:58 +0000 (11:26 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 24 Sep 2010 21:56:39 +0000 (14:56 -0700)
commit1b0b30d04304392748a8a4ab5a69e52a19f51b3a
tree24e2ab128b4ce30f158f9113765ac7b6befb1805
parent05c53113e0c73c7cab61edf53524c61c20a547c2
add support for [1974164] Be able to take a screen shot on the device

screenshots are taken using ISurfaceComposer::captureScreen() which returns
the size of the screenshot and an IMemoryHeap containing the data.
screenshots have limitations:
- they will always fail if a secure window is up on screen
- require GL_OES_framebuffer_object extension
- in some situation, video planes won't been captured

Change-Id: I741c68a2d2984fb139039301c3349e6780e2cd58
include/surfaceflinger/ISurfaceComposer.h
libs/surfaceflinger_client/ISurfaceComposer.cpp
services/surfaceflinger/GLExtensions.cpp
services/surfaceflinger/GLExtensions.h
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h