Chromium Code Reviews
Description[Remoting Android] Fix Painting After Rotation Bug
Previous CL 2132883002 removed the attachRedrawCallback() call in
Desktop.onStart() since it will be called in DesktopView.surfaceChanged().
This introduces a bug that if requestRepaint() is called before
surfaceChanged(), then mRepaintPending will be set to true and
mDisplay.redrawGraphics() will do nothing. paint() will not be called since
the redraw callback is not set, and mRepaintPending will not be set back to
false, making it skip all future render requests until paint() is triggered
by JniVideoRenderer in C++.
This CL fixes this problem by moving attachRedrawCallback() to the ctor
of DesktopView. paint() already has checks to prevent rendering happens if
the DesktopView is not ready yet.
BUG=627191
Committed: https://crrev.com/856d9fb7b4fa883fc66ec27ec3901b3b3683875a
Cr-Commit-Position: refs/heads/master@{#404732}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 10 (5 generated)
|
|||||||||||||||||||