commit | 0375ae80fe1d94e9d0fc175ce4312d1b3a6bc168 | [log] [tgz] |
---|---|---|
author | Vladimir Levin <[email protected]> | Tue Jul 18 03:06:40 2017 |
committer | Commit Bot <[email protected]> | Tue Jul 18 03:06:40 2017 |
tree | bc7598bad41ac4561e6fc149823ed63ec4946ced | |
parent | 7310f8e993f852c2c5110d00f72f2a882b6fdcf1 [diff] [blame] |
content: Double tile memory for large monitors (4k) With the current memory limits, the compositor experiences frequent out of memory issues when running on 4k monitors. This patch doubles the memory allowed to use when the screen resolution is high enough (>= 3500px by default). [email protected], [email protected] Bug: 695427 Change-Id: I73884ae93d7ccd32fd76b8e40f3a596a02e4eaae Reviewed-on: https://chromium-review.googlesource.com/575445 Reviewed-by: Eric Karl <[email protected]> Reviewed-by: Antoine Labour <[email protected]> Commit-Queue: Vladimir Levin <[email protected]> Cr-Commit-Position: refs/heads/master@{#487364}
diff --git a/content/renderer/gpu/render_widget_compositor.h b/content/renderer/gpu/render_widget_compositor.h index bf36242d..719c56d 100644 --- a/content/renderer/gpu/render_widget_compositor.h +++ b/content/renderer/gpu/render_widget_compositor.h
@@ -83,7 +83,8 @@ std::unique_ptr<cc::AnimationHost> animation_host); static cc::ManagedMemoryPolicy GetGpuMemoryPolicy( - const cc::ManagedMemoryPolicy& policy); + const cc::ManagedMemoryPolicy& policy, + const ScreenInfo& screen_info); void SetNeverVisible(); const base::WeakPtr<cc::InputHandler>& GetInputHandler();