Chromium Code Reviews
DescriptionMake 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 #
Messages
Total messages: 16 (11 generated)
|
|||||||||||||||||||||||||||||||||||||