Chromium Code Reviews
Descriptionaw: Fix effective frame source leak after detach
shouqun@ discovered that destroying the SurfaceFactory before all
resources belonging to that surface are returned will lead to those
resources being dropped completely, since cc::Display only holds onto a
weakptr to SurfaceFactory to return resources.
Webview goes through this cycle each time it's detached and re-attached,
so the "lost" resources will keep growing until the memory budget is
reached. Note though that destroying the webview does free these
resources, so they are not lost forever. But detach/attach is very
common, and this is still a severe leak.
Fix by submitting an empty frame into the Surface, which forces
resources from the previous frame to be returned.
BUG=655434
Committed: https://crrev.com/2fd5e46f7fba4945e86a5c4cd9297a6eaf2417df
Cr-Commit-Position: refs/heads/master@{#425466}
Patch Set 1 #
Messages
Total messages: 14 (7 generated)
|
|||||||||||||||||||