diff options
author | chaviw <chaviw@google.com> | 2018-09-10 16:44:56 -0700 |
---|---|---|
committer | chaviw <chaviw@google.com> | 2018-09-19 10:11:53 -0700 |
commit | 08520a05af8ee5498cfffd5e214d84359338c3e8 (patch) | |
tree | 6a14a7956739a3854025f5048b10496b1196247f /cmds/screencap | |
parent | 6c109c76c99a0d8f3437b4530f6e5281bb45f00d (diff) |
Remove minLayer and maxLayer from display screenshot.
When taking a full display screenshot, there's no longer a need for min
and max layer. Instead, the entire display will be screenshotted. If
only some layers should be screenshotted, then use the captureLayers method
instead.
Also, condensed the methods so there is only one screenshot method for
displays that returns a GraphicBuffer. SurfaceControl can then convert
it to the desired format, like Bitmap or Surface.
Test: Rotation, adb shell screencap, power + volume down, bugreport.
Change-Id: Ia5a293e89d2cf3811fd06ffcbafeee389a32840e
Diffstat (limited to 'cmds/screencap')
-rw-r--r-- | cmds/screencap/screencap.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmds/screencap/screencap.cpp b/cmds/screencap/screencap.cpp index b11e84322dde..11029e75d46a 100644 --- a/cmds/screencap/screencap.cpp +++ b/cmds/screencap/screencap.cpp @@ -198,8 +198,7 @@ int main(int argc, char** argv) sp<GraphicBuffer> outBuffer; status_t result = ScreenshotClient::capture(display, Rect(), 0 /* reqWidth */, - 0 /* reqHeight */, INT32_MIN, INT32_MAX, /* all layers */ false, captureOrientation, - &outBuffer); + 0 /* reqHeight */, false, captureOrientation, &outBuffer); if (result != NO_ERROR) { close(fd); return 1; |