summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorLais Andrade <lsandrade@google.com>2021-05-06 15:33:05 +0100
committerLais Andrade <lsandrade@google.com>2021-06-01 11:45:54 +0000
commit9934c33d8c8f779b2eea817b0713247e9c4a0b85 (patch)
tree70e425534eb805e4335b7ee2bb89171412e763fc /libs/hwui/renderthread/DrawFrameTask.cpp
parent33f631ad2a57aac9206d82eff300174a4f90052e (diff)
Move all interaction with vibrator HAL outside VibrationThread lock
The calls to the Vibrator HAL (on, perform, compose, off) are done from within synchronized blocks of code in VibrationThread. This makes calls to cancel the thread or native callbacks wait for HAL interactions, which might have a latency. Fix this by moving all calls to the HAL to the thread main look and out of any synchronized block. Also added a regression test for this scenario. Bug: 185191271 Fix: 189489898 Test: VibrationThreadTest Change-Id: I1aaf0ef7162abd15adfb4a8ac62b9798d67ac592
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions