Loading
SF: Include fence returned from renderScreen into layers' release fence
In previous SurfaceFlinger implementation, the release fence generated from the call of renderScreen was returned to its callers only. However, the access of those rendered buffers from other components wasn't aware of the extra work inside renderScreen. This patch includes the fence into layers' release fence to allow the GPU to finish reading the buffer before codec writes new context into the buffer. Bug: 149962883 Bug: 152292389 Test: Rotate video on youtube over 1 hour without fence leakge Change-Id: I17cc3e816236d2695f30b45a0be560fb6741f16f