summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2017-10-11 10:39:32 -0700
committerWinson Chung <winsonc@google.com>2017-10-26 11:11:33 -0700
commit61c9e5a62933a9fe933ce5e6a4343cd0fbd8a532 (patch)
tree2318fc6cceb7a3167073e112045ad7f1ce600b87 /libs/hwui/renderthread/DrawFrameTask.cpp
parentbb18e32964d7802c042fde558ffb2840ec2db9db (diff)
5/Organize and make running tasks code more efficient
- Move running task code from stack/supervisor into its own class - Reduce work to calculate running tasks. Instead of creating RunningTaskInfo for every single task and then limiting to the requested set, calculate the set and then create the infos. - Consolidate calculation of number of running activities in a task between the RecentTaskInfo and the RunningTaskInfo - Remove unused flag argument, adding another method to instead filter the collection of running tasks to exclude certain activity types and windowing modes. This allows us to fetch only the last running task in SystemUI and not have additional logic on our side. Bug: 34270611 Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/am/RunningTasksTest.java Change-Id: Iaba7487cea0545f69739da7cd3095b500a0df6fc
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions