summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2016-12-06 09:10:06 -0800
committerJorim Jaggi <jjaggi@google.com>2017-01-12 16:28:01 +0100
commit02886a82d876aa5e31a92444fec70208599c509c (patch)
tree7a457a81fa28dcc5795eb60486aa8b20ef62ba74 /tools/aapt2/diff/Diff.cpp
parente86e6d75959787389fcc9b51082b0f33c4553fcd (diff)
Initial implementation of snapshots
All this functionality is hidden behind a flag. If this flag is active, we disable the regular screenshots. Instead, we take a screenshot when an app transition for which a task is disappearing is starting. The screenshot gets stored into a gralloc buffer. SystemUI uses a new method to retrieve a snapshot gralloc buffer and then draws it using GraphicBuffer. createHardwareBitmap(). When starting an existing activity in an existing tasks, or when bringing an existing tasks to front from recents, we add a new snapshot starting window. For that, we reuse the existing starting window, but when creating the window, we use a fake window that draws the contents of the starting window. Test: runtest frameworks-services -c com.android.server.wm.TaskSnapshotControllerTest Bug: 31339431 Change-Id: If72df07b3e56f30413db5029d0887b8c9665aaf4
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions