Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Issue 43193002: Aura/ÜC: Drop frames on background tabs (Closed)

Created:
7 years, 1 month ago by piman
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : Add test, properly extract RendererFrameManager #

Total comments: 11

Patch Set 3 : addressed review comments #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : nit #

Patch Set 6 : CONTENT_EXPORT #

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

Messages

Total messages: 9 (0 generated)
piman
danakj: please review jbauman/ccameron: FYI for the software changes, though feel free to chime in.
7 years, 1 month ago (2013-10-25 23:34:14 UTC) #1
danakj
https://codereview.chromium.org/43193002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/43193002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1497 content/browser/renderer_host/render_widget_host_view_aura.cc:1497: window_->layer()->SetShowPaintedContent(); Should this just call EvictDelegatedFrame() rather than duplicating ...
7 years, 1 month ago (2013-10-28 21:39:20 UTC) #2
piman
https://codereview.chromium.org/43193002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/43193002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1497 content/browser/renderer_host/render_widget_host_view_aura.cc:1497: window_->layer()->SetShowPaintedContent(); On 2013/10/28 21:39:21, danakj wrote: > Should this ...
7 years, 1 month ago (2013-10-28 22:08:38 UTC) #3
danakj
LGTM https://codereview.chromium.org/43193002/diff/240001/content/browser/renderer_host/delegated_frame_evictor.h File content/browser/renderer_host/delegated_frame_evictor.h (right): https://codereview.chromium.org/43193002/diff/240001/content/browser/renderer_host/delegated_frame_evictor.h#newcode29 content/browser/renderer_host/delegated_frame_evictor.h:29: // RendererFrameManagerClient implementation nit: .
7 years, 1 month ago (2013-10-28 22:29:41 UTC) #4
piman
https://codereview.chromium.org/43193002/diff/240001/content/browser/renderer_host/delegated_frame_evictor.h File content/browser/renderer_host/delegated_frame_evictor.h (right): https://codereview.chromium.org/43193002/diff/240001/content/browser/renderer_host/delegated_frame_evictor.h#newcode29 content/browser/renderer_host/delegated_frame_evictor.h:29: // RendererFrameManagerClient implementation On 2013/10/28 22:29:41, danakj wrote: > ...
7 years, 1 month ago (2013-10-28 22:40:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/43193002/300001
7 years, 1 month ago (2013-10-28 22:43:21 UTC) #6
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
7 years, 1 month ago (2013-10-28 23:05:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/43193002/350001
7 years, 1 month ago (2013-10-28 23:08:10 UTC) #8
commit-bot: I haz the power
7 years, 1 month ago (2013-10-29 01:20:04 UTC) #9
Message was sent while issue was closed.
Change committed as 231473

Powered by Google App Engine
This is Rietveld 408576698