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

Issue 14061028: cc: Set tile manager memory policy in initializeRenderer. (Closed)

Created:
7 years, 7 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 7 months ago
Reviewers:
reveman, slavi, ccameron
CC:
chromium-reviews, cc-bugs_chromium.org, piman, enne (OOO), kaanb, danakj
Visibility:
Public.

Description

cc: Set tile manager memory policy in initializeRenderer. The combination of software compositing and impl-side painting is currently broken because no one calls EnforceManagedMemoryPolicy after the TileManager is created. Add a call in initializeRenderer. This also results in allocating impl-side-painting tiles in test code, and this flushed out some bugs in TileManager destruction; I also fixed those. BUG=236535, 230194 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197565

Patch Set 1 #

Total comments: 1

Patch Set 2 : Just call EnforceManagedMemoryPolicy #

Patch Set 3 : Fix cc_unittests #

Patch Set 4 : Avoid invoking non-tile-manager related code #

Patch Set 5 : Remove DCHECK #

Total comments: 1

Patch Set 6 : Add link to bug in comment #

Patch Set 7 : Clean fix that fixes some bugs in TileManager destruction #

Patch Set 8 : Rebase to 197532 #

Patch Set 9 : Explicit set to USING_RELEASABLE_MEMORY #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -17 lines) Patch
M cc/base/worker_pool.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 2 chunks +24 lines, -17 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
aelias_OOO_until_Jul13
PTAL. This will need a real fix but this avoids the white tab condition in ...
7 years, 7 months ago (2013-04-29 23:36:29 UTC) #1
ccameron
Calling SetManagedMemoryPolicy shouldn't be necessary -- there should be a default policy in place (see ...
7 years, 7 months ago (2013-04-29 23:58:46 UTC) #2
slavi
lgtm
7 years, 7 months ago (2013-04-30 00:30:54 UTC) #3
aelias_OOO_until_Jul13
There is a side-effect, it calls EnforceManagedMemoryPolicy which affects the newly created TileManager. I just ...
7 years, 7 months ago (2013-04-30 00:31:29 UTC) #4
aelias_OOO_until_Jul13
Some of the cc_unittests were depending on the accidental behavior of 0 memory limit, so ...
7 years, 7 months ago (2013-04-30 04:26:20 UTC) #5
ccameron
This lgtm, except for the assert that was removed -- that shouldn't be the case ...
7 years, 7 months ago (2013-04-30 18:52:00 UTC) #6
aelias_OOO_until_Jul13
I spent another half hour trying to find a cleaner fix but didn't find anything ...
7 years, 7 months ago (2013-04-30 19:42:10 UTC) #7
ccameron
On 2013/04/30 19:42:10, aelias wrote: > I spent another half hour trying to find a ...
7 years, 7 months ago (2013-04-30 19:43:04 UTC) #8
aelias_OOO_until_Jul13
Building on top of Dana's https://codereview.chromium.org/14273026 I found a clean fix after all. Because the ...
7 years, 7 months ago (2013-04-30 23:59:37 UTC) #9
reveman
lgtm
7 years, 7 months ago (2013-05-01 01:39:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/14061028/31001
7 years, 7 months ago (2013-05-01 03:45:08 UTC) #11
commit-bot: I haz the power
7 years, 7 months ago (2013-05-01 03:45:20 UTC) #12
Message was sent while issue was closed.
Change committed as 197565

Powered by Google App Engine
This is Rietveld 408576698