Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fa4334fc authored by MingWei's avatar MingWei
Browse files

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
parent 204f79c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment