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

Issue 2905113003: Make CompositorView be visible and have a background color on creation. (Closed)

Created:
3 years, 7 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 7 months ago
Reviewers:
Changwan Ryu, boliu
CC:
agrieve+watch_chromium.org, boliu, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make CompositorView be visible and have a background color on creation. This moves the visibility and background color setting for the placeholder CompositorView in the constructor (before native is loaded). This gives the View system the opportunity to draw a white frame earlier -- in the current codepath we set the SurfaceView and CompositorView visibility at the same time on native load, it appears that they race and black is shown when the SurfaceView frame is suppressed by surfaceRedrawAsyncNeeded. This patch doesn't change visibility timing of the SurfaceView itself, because it has the important side effect of suppressing surfaceCreated and surfaceChanged when the native side is not yet ready to handle them. BUG=726564 Review-Url: https://codereview.chromium.org/2905113003 Cr-Commit-Position: refs/heads/master@{#475056} Committed: https://chromium.googlesource.com/chromium/src/+/f7b1b07daa4fb6337f9806a00e3a299aeb613641

Patch Set 1 #

Patch Set 2 : Add unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -4 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorSurfaceManager.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorView.java View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/compositor/CompositorVisibilityTest.java View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
aelias_OOO_until_Jul13
Hi changwan@, PTAL. (boliu@ is OOO on Friday so he can't do the initial round ...
3 years, 7 months ago (2017-05-26 04:13:33 UTC) #6
boliu
actually change of plans, still around today :p lgtm
3 years, 7 months ago (2017-05-26 15:44:24 UTC) #10
Changwan Ryu
lgtm
3 years, 7 months ago (2017-05-26 16:09:58 UTC) #11
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/2905113003/20001
3 years, 7 months ago (2017-05-26 17:50:35 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 17:55:17 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f7b1b07daa4fb6337f9806a00e3a...

Powered by Google App Engine
This is Rietveld 408576698