Chromium Code Reviews
DescriptionMus+Ash: Use standard cc mechanism for surface lifetime.
Rendering of the topmost frame happens in two phases. First the frame
is generated and submitted, and a later date it is actually drawn.
During the time the frame is generated and drawn we can't destroy the
surface, otherwise when drawn you get an empty surface.
To address this previously, mus-ws implemented its own lifetime management
system. cc already has a mechanism called SurfaceSequence (which is being
updated in parallel). However, in order to manage surface lifetime correctly
the face of surface ID propagation to clients, we need to track surfaces
using cc.
BUG=647852
Committed: https://crrev.com/d469420cbb2b76ae2311ecfbfbccff74422878f0
Cr-Commit-Position: refs/heads/master@{#424010}
Patch Set 1 #Patch Set 2 : Rebase and remove stale comments #Patch Set 3 : Drop reference to surfaces when window goes away #Patch Set 4 : Unbreak unittest #Patch Set 5 : Only add window observer if we're adding the dependency for the first time #
Total comments: 21
Patch Set 6 : Addressed Rob's comments #
Total comments: 2
Patch Set 7 : Addressed Rob's comments #Patch Set 8 : Only AddObserver once #
Messages
Total messages: 34 (19 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||