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

Commit d67d03ac authored by Melody Hsu's avatar Melody Hsu
Browse files

Remove SF statelock and legacy layer uses in captureLayers

Minimizes the areas that we accesss mStateLock on the screenshot
path by grouping all work that requires mStateLock in the same
stage of the screenshot. Migrates away from legacy layer use and
corrects floating point precision truncation with storing frame
scaling factor in screenshot arg's size.

Bug: b/377758217
Test: atest SurfaceFlinger_test
Flag: EXEMPT, refactor, legacy code removal
Change-Id: Ib2d1f9e47043096fa7cb83ca4eedb5e32d68f54e
parent c4aacbb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment