|
Aura/ÜC: Drop frames on background tabs
We want to make sure we release memory on background tabs to avoid scaling
memory usage with the number of open tabs.
This CL hooks into the same memory manager as for software frames (extracted
into RendererFrameManager), which mainly tries to keep a maximum of 2 to 5
(depending on available memory) tabs with an allocated frame, for faster tab
switching. The other ones will discard their frames and return the resources
to the renderer.
BUG= 311353
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231473
Total comments: 11
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+328 lines, -103 lines) |
Patch |
 |
A |
content/browser/renderer_host/delegated_frame_evictor.h
|
View
|
1
2
3
4
5
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/delegated_frame_evictor.cc
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.h
|
View
|
1
2
|
5 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
3
|
8 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
|
View
|
1
2
|
5 chunks |
+105 lines, -5 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/renderer_frame_manager.h
|
View
|
1
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/renderer_frame_manager.cc
|
View
|
1
2
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/software_frame_manager.h
|
View
|
1
|
4 chunks |
+4 lines, -32 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/software_frame_manager.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -56 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/software_frame_manager_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
3
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|