• Albert Chaulk's avatar
    Add kDisableLayerTreeHostMemoryPressure switch to LayerTreeHostImpl · f471504b
    Albert Chaulk authored
    Chromecast is seeing issues when the active layer releases its
    resources, disabling the memory pressure listener fixes it.
    
    It is possible that because chromecast devices set critical memory
    pressure to very low amounts (<30MB) coupled with the gpu driver not
    being able to actually free memory until existing rendering commands
    have completed, the memory pressure handler freeing things that then
    get reallocated right away for the next frame can actually increase
    memory pressure, triggering an actual OOM condition on device
    
    Bug: b/118774931
    Test: None
    Change-Id: Iff393de370b7250ebe5c4ec21a1f225e3887c0f6
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2140608
    Commit-Queue: Albert Chaulk <achaulk@chromium.org>
    Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#758985}
    f471504b
switches.h 2.79 KB