diff options
author | Dan Stoza <stoza@google.com> | 2014-02-14 15:06:55 -0800 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2014-02-14 23:10:29 +0000 |
commit | 16ec12ae77fdd2b09ea0ea0885ac52f11bd32c59 (patch) | |
tree | a489ab33cd1706382c24a4f71b4ab45990793c39 /cmds/screencap/screencap.cpp | |
parent | d5c8044e7e1f1402fdd4a035690329294ab07b33 (diff) | |
download | frameworks_base-16ec12ae77fdd2b09ea0ea0885ac52f11bd32c59.zip frameworks_base-16ec12ae77fdd2b09ea0ea0885ac52f11bd32c59.tar.gz frameworks_base-16ec12ae77fdd2b09ea0ea0885ac52f11bd32c59.tar.bz2 |
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: I96e65506b198d34724eb3aa84815aae6f6de4935
Diffstat (limited to 'cmds/screencap/screencap.cpp')
-rw-r--r-- | cmds/screencap/screencap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/screencap/screencap.cpp b/cmds/screencap/screencap.cpp index a57de01..2efe4d3 100644 --- a/cmds/screencap/screencap.cpp +++ b/cmds/screencap/screencap.cpp @@ -141,7 +141,7 @@ int main(int argc, char** argv) ScreenshotClient screenshot; sp<IBinder> display = SurfaceComposerClient::getBuiltInDisplay(displayId); - if (display != NULL && screenshot.update(display) == NO_ERROR) { + if (display != NULL && screenshot.update(display, false) == NO_ERROR) { base = screenshot.getPixels(); w = screenshot.getWidth(); h = screenshot.getHeight(); |