summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorCeci Wu <ceci.wu@mediatek.com>2016-08-25 14:48:19 +0800
committerPatrick Tsai <patrick.tsai@mediatek.com>2017-01-27 17:52:21 -0800
commit3b90d48e81b34337a4a30f6a25970df9ec13b397 (patch)
tree58c7b66b7e69079d747f05d9689c3f66489ec81b /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent082b1186415e0d2b6d9109938b5494b4d69aba99 (diff)
Query geo description in worker thread to prevent ANR
Currently geo description of a caller is queried in the main thread, for both InCallUI and framework CallerInfo. Since it is a potentially time-consuming operation especially when the system is under heavy loading, the main thread might be blocked for a long time. As a result, the ANR happens. The solution to to move the query to worker thread to free the main thread and enhance the performance. Besides, to ensure listeners are notified with complete CallInfo, we need to delay callbacks until EVENT_END_OF_QUEUE. Change-Id: Ibe444fc0f98d07e7ebbe266987e60ede334a3216
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions