Chromium Code Reviews
DescriptionFix surface reference assumptions in SurfaceManager.
The original plan was to use the surface reference graph plus
SurfaceSequences to help migrate code to use surface reference graph.
That doesn't look to be necessary and/or workable now so cleanup
SurfaceMananger.
1. Remove checking count of surface references in the surface reference
graph. We won't add references if we are using the old system.
2. If a surface drops to having 0 incoming references, don't delete all
references it holds. We are doing garbage collection via top-level
root, so there is no need to cleanup references. This wouldn't work
if a cycle got introduced anyways.
3. Add cleanup of references when a surface is deleted. Since (2) no
longer happens we have to cleanup references on delete.
4. Cleanup unit tests. The older tests are improved to actually check
the specific references exist instead of just having the right
number. Also fix some style differences across new + old tests to
make them easier to read.
This also sets things up to remove the SurfaceReferenceManager interface
that is now unused.
BUG=659227
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2642123004
Cr-Commit-Position: refs/heads/master@{#446053}
Committed: https://chromium.googlesource.com/chromium/src/+/43117a2e3860fed908e46bed85624b17358fe63b
Patch Set 1 #Patch Set 2 : Rebase + fixes. #Patch Set 3 : Rebase + fix test. #
Dependent Patchsets: Messages
Total messages: 23 (17 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||