Loading
frameworks: WindowManagerService: Fix out of memory for surface error
Surface.openTransaction and Surface.closeTransaction is not reentrant. If we are updating the mouse surface when the WindowManager is also updating the surfaces, the global transaction can be closed too early by the other side. The results are random runtime exceptions and unstable surface state. Move the mouse surface update logic to the big surfaces update loop, together with the other surfaces update logic. Change-Id: I38a4f264f8de59899c3ac0fdaf9d8cd520d41947