summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2019-11-23 00:39:14 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-01-03 22:09:55 +0800
commit8b37bc0a8353bb11a6cae6c5e8c7fc19cbe91c21 (patch)
treef7c43cd3fcdd98fd3226f7267bfbe0a5805cb45a /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentfbe8eca9ed225503da536bcef32d7191d95f160f (diff)
Move blocking surface operations out of lock
SurfaceFlinger may take a while when toggling display power mode. The caller who uses the other sync methods of SurfaceControl at this time will also be blocked. Because these procedures may be called during traversal, that may affect the speed of unlocking. DisplayManagerService: performTraversalLocked -> configureDisplayLocked -> LocalDisplay: configureDisplayLocked -> LocalDisplayAdapter.LocalDisplayDevice: setDesiredDisplayModeSpecsLocked setRequestedColorModeLocked Bug: 143234343 Test: 1. Add trace around DisplayManagerService#performTraversalInternal and SurfaceControl#setDisplayPowerMode. 2. Remove check of mode change (force always update). 3. Turn on/off screen and check the trace that animation thread should not be blocked by a binder transaction to SurfaceFlinger. Change-Id: Icd916d6c7b4e3fda485f41ca8b3da56521e12a06
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions