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

Issue 11637022: Send memory management policies to the tile manager (Closed)

Created:
8 years ago by ccameron
Modified:
7 years, 11 months ago
Reviewers:
nduca, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, jamesr
Visibility:
Public.

Description

Send memory management policies to the tile manager Replace the priority cutoff value in ManagedMemoryPolicy with an enum, which can be converted into a cutoff value for the PrioritizedResourceManager or a policy for the TileManager. Remove ResourcePool functions for dropping memory consumption because they will leave Resource pointers dangling. BUG=163029 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174883

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use WebKit types #

Patch Set 3 : Incorporate discussions #

Total comments: 8

Patch Set 4 : Incorporate review feedback #

Total comments: 4

Patch Set 5 : Incorporate review feedback #

Patch Set 6 : Re-resolve against head #

Patch Set 7 : Fix clang build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -24 lines) Patch
M cc/gl_renderer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/gl_renderer.cc View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 6 4 chunks +18 lines, -6 lines 0 comments Download
M cc/managed_memory_policy.h View 1 2 1 chunk +15 lines, -4 lines 0 comments Download
M cc/managed_memory_policy.cc View 1 2 2 chunks +38 lines, -4 lines 0 comments Download
M cc/thread_proxy.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M cc/tile_manager.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 4 chunks +35 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
nduca
some assorted shreds of thought https://codereview.chromium.org/11637022/diff/1/cc/gl_renderer.h File cc/gl_renderer.h (right): https://codereview.chromium.org/11637022/diff/1/cc/gl_renderer.h#newcode92 cc/gl_renderer.h:92: static ManagedMemoryPolicy::PriorityCutoff priorityCutoffValue(WebKit::WebGraphicsMemoryAllocation::PriorityCutoff); When ...
8 years ago (2012-12-19 21:46:32 UTC) #1
ccameron
> When I looked at this last, i was thinking we had one too many ...
8 years ago (2012-12-19 22:22:10 UTC) #2
nduca
> I'm totally in favor of consolidating all of the types. But what to? I ...
8 years ago (2012-12-20 18:10:05 UTC) #3
ccameron
Okay, if I can use the WebKit type directly, that removes a lot of the ...
8 years ago (2012-12-20 21:02:47 UTC) #4
enne (OOO)
For what it's worth, I think using WebKit types directly is the wrong direction. cc ...
8 years ago (2012-12-20 23:14:35 UTC) #5
ccameron
Removing the "not ready for review" part of the title, after getting feedback. We're leaving ...
7 years, 12 months ago (2012-12-26 23:55:54 UTC) #6
enne (OOO)
I don't think I feel comfortable reviewing this patch in isolation without giving Nat a ...
7 years, 12 months ago (2012-12-27 22:06:39 UTC) #7
ccameron
Thanks! Yes, I'll wait for Nat to take a look. https://codereview.chromium.org/11637022/diff/10001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/11637022/diff/10001/cc/tile_manager.cc#newcode200 ...
7 years, 12 months ago (2012-12-27 22:42:59 UTC) #8
enne (OOO)
https://codereview.chromium.org/11637022/diff/10001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/11637022/diff/10001/cc/tile_manager.cc#newcode200 cc/tile_manager.cc:200: ManageTiles(); On 2012/12/27 22:42:59, ccameron1 wrote: > Yes, this ...
7 years, 12 months ago (2012-12-27 23:02:00 UTC) #9
nduca
This looks really good. Some comments about the SendStats call but overall, I'm happy. Enne, ...
7 years, 12 months ago (2012-12-28 02:16:03 UTC) #10
ccameron
Thanks!! https://codereview.chromium.org/11637022/diff/15001/cc/thread_proxy.cc File cc/thread_proxy.cc (right): https://codereview.chromium.org/11637022/diff/15001/cc/thread_proxy.cc#newcode402 cc/thread_proxy.cc:402: if (m_layerTreeHostImpl->tileManager()) Yes, that's the right signal. https://codereview.chromium.org/11637022/diff/15001/cc/tile_manager.h ...
7 years, 12 months ago (2012-12-28 19:55:59 UTC) #11
ccameron
Ping for lg.
7 years, 11 months ago (2013-01-02 18:44:06 UTC) #12
enne (OOO)
On 2013/01/02 18:44:06, ccameron1 wrote: > Ping for lg. Ack! I'm sorry; I glanced at ...
7 years, 11 months ago (2013-01-02 18:49:33 UTC) #13
ccameron
Thanks!!
7 years, 11 months ago (2013-01-02 18:50:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/11637022/21001
7 years, 11 months ago (2013-01-02 18:50:29 UTC) #15
commit-bot: I haz the power
Failed to apply patch for cc/layer_tree_host_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-02 18:50:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/11637022/27002
7 years, 11 months ago (2013-01-02 19:04:23 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-02 19:25:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/11637022/23002
7 years, 11 months ago (2013-01-02 20:43:52 UTC) #19
commit-bot: I haz the power
7 years, 11 months ago (2013-01-02 22:47:32 UTC) #20
Message was sent while issue was closed.
Change committed as 174883

Powered by Google App Engine
This is Rietveld 408576698