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

Issue 12502016: cc: Add command line switch to control resource usage for impl-side painting. (Closed)

Created:
7 years, 9 months ago by reveman
Modified:
7 years, 8 months ago
Reviewers:
nduca, epenner, piman
CC:
chromium-reviews, cc-bugs_chromium.org, epenner
Visibility:
Public.

Description

cc: Add command line switch to control resource usage for impl-side painting. Reduce unused resource pool memory to a percentage of memory limit. BUG=179460 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191239

Patch Set 1 #

Patch Set 2 : MRU eviction pattern #

Total comments: 4

Patch Set 3 : Allow unused memory relative to viewport size. #

Patch Set 4 : add command line switch #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -10 lines) Patch
M cc/base/switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/switches.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/resource_pool.h View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M cc/resources/resource_pool.cc View 1 2 3 chunks +26 lines, -7 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M cc/resources/tile_priority.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
reveman
We should probably get this into M27. Wdyt?
7 years, 9 months ago (2013-03-25 05:00:24 UTC) #1
piman
I'll let Nat review the actual code, just one question/comment. https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc#newcode100 ...
7 years, 9 months ago (2013-03-25 18:13:46 UTC) #2
reveman
https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc#newcode100 cc/resources/resource_pool.cc:100: size_t ten_percent_of_memory = max_memory_usage_bytes_ / 10; On 2013/03/25 18:13:46, ...
7 years, 9 months ago (2013-03-25 18:36:06 UTC) #3
nduca
https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc#newcode100 cc/resources/resource_pool.cc:100: size_t ten_percent_of_memory = max_memory_usage_bytes_ / 10; How does this ...
7 years, 9 months ago (2013-03-25 18:37:49 UTC) #4
reveman
https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc#newcode100 cc/resources/resource_pool.cc:100: size_t ten_percent_of_memory = max_memory_usage_bytes_ / 10; On 2013/03/25 18:37:49, ...
7 years, 9 months ago (2013-03-25 18:47:33 UTC) #5
nduca
maybe we can make the pool accept the enum, then have idleness cause an allow_prepainting ...
7 years, 9 months ago (2013-03-25 19:06:41 UTC) #6
nduca
also should we inherit the "temporary reduce to this policy" vs "please use this as ...
7 years, 9 months ago (2013-03-25 19:07:22 UTC) #7
piman
On Mon, Mar 25, 2013 at 11:36 AM, <reveman@chromium.org> wrote: > > https://codereview.chromium.**org/12502016/diff/1001/cc/** > resources/resource_pool.cc<https://codereview.chromium.org/12502016/diff/1001/cc/resources/resource_pool.cc> ...
7 years, 9 months ago (2013-03-25 19:19:29 UTC) #8
reveman
latest patch sets the unused memory limit based on viewport size and it doesn't care ...
7 years, 9 months ago (2013-03-26 04:51:37 UTC) #9
nduca
Gagh, thats memory manager's job [and we've seen countless cases where viewport heurstics are wrong, ...
7 years, 9 months ago (2013-03-26 05:46:15 UTC) #10
piman
On Mon, Mar 25, 2013 at 10:46 PM, <nduca@chromium.org> wrote: > Gagh, thats memory manager's ...
7 years, 9 months ago (2013-03-26 20:32:37 UTC) #11
epenner
This is a case where Android has pretty different needs. On Android we are much ...
7 years, 9 months ago (2013-03-27 02:52:33 UTC) #12
reveman
Added the command line switch as discussed. PTAL.
7 years, 9 months ago (2013-03-27 23:51:47 UTC) #13
piman
LGTM for the flag, content/ and chrome/, someone else please review the rest.
7 years, 9 months ago (2013-03-28 00:00:04 UTC) #14
nduca
lgtm and lets do a follow up maybe later to see if we can get ...
7 years, 9 months ago (2013-03-28 02:51:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/12502016/23001
7 years, 9 months ago (2013-03-28 18:23:44 UTC) #16
commit-bot: I haz the power
7 years, 8 months ago (2013-03-28 23:27:03 UTC) #17
Message was sent while issue was closed.
Change committed as 191239

Powered by Google App Engine
This is Rietveld 408576698