Commits

Wale Ogunwale authored 20fee4f657b
Fixed glitch in NuPlayer when surface size changes When VideoView calls setFixedSize(), the SurfaceControl.setSize() gets called from WindowStateAnimator.setSurfaceBoundariesLocked, but setSurfaceBoundariesLocked only updates the size, not the transform matrix/scaling factor. The after some time, SurfaceControl.setMatrix gets called by WindowStateAnimator.prepareSurfaceLocked. It updates both size and matrix (size update is skipped since it's already updated by setSurfaceBoundariesLocked earlier). This corrects the transform matrix, and restores video rendering. We now call setMatrix() in setSurfaceBoundariesLocked() to avoid the glitch. Bug: 18773834 Change-Id: I5e8de38495fabe54eefa8bd3003627d11392c0f1