diff options
| author | 2014-02-14 15:03:43 -0800 | |
|---|---|---|
| committer | 2014-02-14 23:10:42 +0000 | |
| commit | c701401f8cec2e5309f8b57e2b97baced5093274 (patch) | |
| tree | e79551fa95d634d1d83beda68a431e53adde43d4 /include/gui/SurfaceComposerClient.h | |
| parent | 87c01edaf6921bcf39537418fa146dafd927b74b (diff) | |
Allow disabling layer rotation during screenshots
Add the ability to ignore layers' transformation matrices during
screenshot capture, which will allow the window manager to capture
unrotated images for recents during the device rotation animation.
Bug: 11805195
Change-Id: I854d87bc84ca06ef9a054a454af1c080ee66fbb8
Diffstat (limited to 'include/gui/SurfaceComposerClient.h')
| -rw-r--r-- | include/gui/SurfaceComposerClient.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/gui/SurfaceComposerClient.h b/include/gui/SurfaceComposerClient.h index e982bcde91..350b9878c7 100644 --- a/include/gui/SurfaceComposerClient.h +++ b/include/gui/SurfaceComposerClient.h @@ -164,7 +164,8 @@ public: const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, uint32_t reqWidth, uint32_t reqHeight, - uint32_t minLayerZ, uint32_t maxLayerZ); + uint32_t minLayerZ, uint32_t maxLayerZ, + bool useIdentityTransform); private: mutable sp<CpuConsumer> mCpuConsumer; @@ -177,12 +178,14 @@ public: ~ScreenshotClient(); // frees the previous screenshot and capture a new one - status_t update(const sp<IBinder>& display); + status_t update(const sp<IBinder>& display, bool useIdentityTransform); status_t update(const sp<IBinder>& display, - uint32_t reqWidth, uint32_t reqHeight); + uint32_t reqWidth, uint32_t reqHeight, + bool useIdentityTransform); status_t update(const sp<IBinder>& display, uint32_t reqWidth, uint32_t reqHeight, - uint32_t minLayerZ, uint32_t maxLayerZ); + uint32_t minLayerZ, uint32_t maxLayerZ, + bool useIdentityTransform); sp<CpuConsumer> getCpuConsumer() const; |