summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2018-06-04 22:13:40 -0400
committerDan Sandler <dsandler@android.com>2018-06-05 15:31:46 -0400
commitf5e17699e31f45089a1ac12291be1efb5c11ca28 (patch)
tree050fb33c0bb9144558bac74367478a006d26cf9a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentdea740bdceb20818d49a0f015c620d1d5d9e5adc (diff)
Delay pruning direct share targets.
Pruning was intended to remove targets corresponding to now-missing packages, but in practice causes the list to briefly disappear any time packages change: PACKAGE_CHANGED -> ResolverActivity.rebuildList() -> ChooserActivity.onListRebuilt() with an empty ResolverActivity.mDisplayList In practice package changes happen all the time, so this jank happens fairly often. (It contributed to b/67622422 as well, since all this list rebuilding started animations that locked out user input.) This CL removes the old pruning process (comparing targets against mDisplayList). Instead, we note that mDisplayList got emptied, and lazily empty our own mServiceTargets once we start getting responses back from all the services we just re-queried. The long-term fix here is to just rebuild all of this stuff. Test: (1) share from Chrome (2) toggle the enable state of some random package to trigger PACKAGE_CHANGED, e.g. adb shell pm (enable|disable) com.android.egg (3) watch for jank Bug: 109676071 Change-Id: Ie9d59b8f4b8cc8343beb40cbad6b8d52e5639082
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions