Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(622)

Issue 2136233002: [Remoting Android] Fix Painting After Rotation Bug (Closed)

Created:
4 years, 5 months ago by Yuwei
Modified:
4 years, 5 months ago
Reviewers:
joedow
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/DesktopView.java View 4 chunks +5 lines, -2 lines 1 comment Download

Messages

Total messages: 10 (5 generated)
Yuwei
ptal https://codereview.chromium.org/2136233002/diff/1/remoting/android/java/src/org/chromium/chromoting/DesktopView.java File remoting/android/java/src/org/chromium/chromoting/DesktopView.java (right): https://codereview.chromium.org/2136233002/diff/1/remoting/android/java/src/org/chromium/chromoting/DesktopView.java#newcode146 remoting/android/java/src/org/chromium/chromoting/DesktopView.java:146: mRepaintPending = false; mRepaintPending would also be frozen ...
4 years, 5 months ago (2016-07-11 20:21:42 UTC) #3
joedow
lgtm
4 years, 5 months ago (2016-07-11 20:32:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2136233002/1
4 years, 5 months ago (2016-07-11 20:34:20 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-11 21:21:14 UTC) #8
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 21:24:08 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/856d9fb7b4fa883fc66ec27ec3901b3b3683875a
Cr-Commit-Position: refs/heads/master@{#404732}

Powered by Google App Engine
This is Rietveld 408576698