forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kDisableLayerTreeHostMemoryPressure switch to LayerTreeHostImpl
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: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#758985}
- Loading branch information
Albert Chaulk
authored and
Commit Bot
committed
Apr 14, 2020
1 parent
8e9c833
commit f471504
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters