OSDN Git Service

Snapshot Task with the app window crop for Recents
authorchaviw <chaviw@google.com>
Sat, 11 Nov 2017 00:14:49 +0000 (16:14 -0800)
committerchaviw <chaviw@google.com>
Tue, 28 Nov 2017 18:52:43 +0000 (10:52 -0800)
commitfbe47df2a41e467db92ad86432b8b726e9e79409
tree99363e31a680e90bbd79c5727e95c1bd00522205
parent6f45a394c55e7b2cfe58e52da3a2254e70d71e54
Snapshot Task with the app window crop for Recents

Snapshot a specific task and its children instead of taking a snapshot
of the whole screen with max and min layer values. This makes it clear
what the desired screenshot is instead of trying to determine what the
max and min z layers should be.

In the process of updating the snapshot code, I split the code that
captures a layer from the code that captures the whole screen. This
simplified the code so the capture screen doesn't need to invoke the
frame calculations since it will be capturing the whole screen anyway.

Test: Recents snapshots work correctly without the IME, status, and
navigation bar

Change-Id: I8776c1ddb9cd8a23a482b045720960702796fd5f
core/java/android/view/SurfaceControl.java
core/jni/android_view_SurfaceControl.cpp
services/core/java/com/android/server/wm/DisplayContent.java
services/core/java/com/android/server/wm/TaskSnapshotController.java
services/core/java/com/android/server/wm/WindowManagerService.java
services/tests/servicestests/AndroidManifest.xml