diff options
author | Wale Ogunwale <ogunwale@google.com> | 2015-04-07 11:32:17 -0700 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2015-04-07 13:35:25 -0700 |
commit | 20fee4f657ba9ec1766db1d189c9bd10fd5c1b7e (patch) | |
tree | 6bbf10a0e610072185a8fa0f7e8c54b03913456a /rs/java/android/renderscript/RenderScript.java | |
parent | 4c8b7953f9d2b56477620124b3c0ce9e0d825cf2 (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions