diff options
| author | 2023-11-13 17:49:26 +0000 | |
|---|---|---|
| committer | 2023-11-22 11:24:36 +0000 | |
| commit | fa4334fc33f548857981cd280e6c2403f95ceb36 (patch) | |
| tree | 90628aba5f2fea2eaf6f743f786134242075ff36 /cmds/bootanimation/BootAnimation.cpp | |
| parent | 204f79c091d0c332c2e37129cd108edeb9ad7047 (diff) | |
Enable content capture running on background thread
1. Make sure works inside MainContentCaptureSession are delegated to the
assigned thread. So even when the works are not done in UiThread, the
synchronization is still guaranteed.
2. Remove requirement of ContentProtectionEventProcessor running on
UiThread. MainContentCaptureSession is the only caller to the
processor. And it is guaranteed that only the assigned thread will be
used. So no need to restrict it on UiThread.
3. Move notifyContentCaptureEvents work away from ViewRootImpl and let
MainContentCaptureSession decide how to process this.
Test: CtsContentCaptureServiceTestCases, MainContentCaptureSessionTest.
BUG: 309411951
Change-Id: I13ce958da2280171fb2eb85b3321e3c7a7c5d0aa
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions