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

Skip to content
Commit 16c112df authored by Marissa Wall's avatar Marissa Wall
Browse files

blast: fix 30Hz wake up issue

When playing 30Hz video, SurfaceFlinger was waking up at a rate of
60Hz. This is because hasFrameUpdate returned true after the update
was already applied. mCurrentStateModified was being cleared after
the frame was sent to HWC instead of when the buffer was latched.

By moving "mCurrentStateModified = false" to latch, the hasFrameUpdate
returns false so SurfaceFlinger doesn't schedule the extra wake up.

Test: SurfaceFlinger_test
Bug: 128520233

Change-Id: I2f18c6d03b81affb1235d6b466d665e711b1db8c
parent 4c6f904f
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