History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/HighResThumbnailLoader.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
44f4bcb80df76608d4db048aacc27760472d6a2d 12-May-2017 Jorim Jaggi <jjaggi@google.com> Fix recents entry delay

- Start loading things after we drew our first frame.
- Don't load high res task until low res tasks have been loaded:
In case the snapshot is already in cache in system_server the
low-res task loader will load the full res snapshot, leading to
GC pressure due to registerNativeAlloc. Now, if both task loader
load the same snapshot at the same time we are very likely
to trigger a blocking GC alloc.

Test: Open recents, look at systrace
Change-Id: I10c263dc8929742611ad9fbb32f65bc8ac3100bd
Fixes: 36851903
Bug: 32668632
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/HighResThumbnailLoader.java
6f9dbcb742ee930151444118dd61c2239efce09d 17-Mar-2017 Jorim Jaggi <jjaggi@google.com> Implement new thumbnail loading strategy

- By default, we load only the reduced resolution screenshots.
- As soon as the user stops scrolling fast, we also start loading
full resolution screenshots.
- We prefetch reduced resolution screenshots when scrolling from
back to front, as the other direction is automatically prefetched
because the thumbnails aren't immediately visible.

Test: Open many apps, adb restart, scroll fast and slow in recents
Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest
Bug: 34829962
Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/HighResThumbnailLoader.java