• Christopher Cameron's avatar
    cc: Make EvictAllUIResources only evict resources, not destroy them · f0951c81
    Christopher Cameron authored
    This is to limit the error spew in about:gpu (currently any useful
    messages are easily lost in warnings about these blank-resource uses).
    
    This function in SetVisible(false) to ensure that resources be dropped
    at tab switch. The current implementation immediately deletes the GL
    resource backing, even if it may be in use by the display. This results
    in flashed-black scrollbars and lots of GL errors.
    
    Change EvictAllUIResources to just evict the resources without
    deleting their backing. The resources are then destroyed when they
    are returned from the display (at OnUIResourceReleased).
    
    Bug: 864905, 870317
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I1e079e1790275d3194b565457971e65f7d265587
    Reviewed-on: https://chromium-review.googlesource.com/1171832
    Commit-Queue: ccameron <ccameron@chromium.org>
    Reviewed-by: default avatarenne <enne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#582453}
    f0951c81
layer_tree_host_impl.h 44.1 KB