summaryrefslogtreecommitdiffstats
path: root/include/gui/ISurfaceComposer.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-03-15 18:31:56 -0700
committerMathias Agopian <mathias@google.com>2013-03-15 18:39:16 -0700
commit041a075262ef5fc886e46fd4eec3dd79ee2e60c0 (patch)
tree495a923b01bc1b81ca0d780b69af3d24d168b0d0 /include/gui/ISurfaceComposer.h
parent7670d3cb2b5d38c60135f34a2446e1ae809d1b32 (diff)
downloadframeworks_native-041a075262ef5fc886e46fd4eec3dd79ee2e60c0.zip
frameworks_native-041a075262ef5fc886e46fd4eec3dd79ee2e60c0.tar.gz
frameworks_native-041a075262ef5fc886e46fd4eec3dd79ee2e60c0.tar.bz2
don't allow screenshots without the READ_FRAMEBUFFER permission
the recent screenshot rework allowed the older screenshot interface to work without that permission Change-Id: I6c4743f4591c81106e3b823d55a055f7b4907de1
Diffstat (limited to 'include/gui/ISurfaceComposer.h')
-rw-r--r--include/gui/ISurfaceComposer.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/gui/ISurfaceComposer.h b/include/gui/ISurfaceComposer.h
index 08eddcb..47f9552 100644
--- a/include/gui/ISurfaceComposer.h
+++ b/include/gui/ISurfaceComposer.h
@@ -103,16 +103,23 @@ public:
uint32_t reqWidth, uint32_t reqHeight,
uint32_t minLayerZ, uint32_t maxLayerZ) = 0;
- /* triggers screen off and waits for it to complete */
+ /* triggers screen off and waits for it to complete
+ * requires ACCESS_SURFACE_FLINGER permission.
+ */
virtual void blank(const sp<IBinder>& display) = 0;
- /* triggers screen on and waits for it to complete */
+ /* triggers screen on and waits for it to complete
+ * requires ACCESS_SURFACE_FLINGER permission.
+ */
virtual void unblank(const sp<IBinder>& display) = 0;
/* returns information about a display
* intended to be used to get information about built-in displays */
virtual status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info) = 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(const sp<IBinder>& display,
const sp<IGraphicBufferProducer>& producer,
uint32_t reqWidth, uint32_t reqHeight,