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

Issue 12213019: Creates a live_tile_ list that manages live tiles. (Closed)

Created:
7 years, 10 months ago by whunt
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Creates a live_tile_ list that manages live tiles. This patch creates an explicit list of tiles with the is_live property. This reduces the working set during SortTiles and other methods that loop over the tiles. BUG=174202 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180811

Patch Set 1 #

Total comments: 10

Patch Set 2 : nitted DCHECK to DCHECK_EQ #

Patch Set 3 : AssignGpuMemoryToTiles looks at *all* tiles, not jus live tiles #

Patch Set 4 : fixed the leak with a mark-sweep approach #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -23 lines) Patch
M cc/tile_manager.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/tile_manager.cc View 1 2 3 13 chunks +61 lines, -22 lines 12 comments Download

Messages

Total messages: 11 (0 generated)
reveman
Looks good. Are you seeing a big difference between LiveTileCount and AllTileCount? It's not clear ...
7 years, 10 months ago (2013-02-05 19:31:09 UTC) #1
nduca
lgtm
7 years, 10 months ago (2013-02-05 19:35:42 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/12213019/1
7 years, 10 months ago (2013-02-05 21:07:18 UTC) #3
whunt
https://chromiumcodereview.appspot.com/12213019/diff/1/cc/tile_manager.cc File cc/tile_manager.cc (right): https://chromiumcodereview.appspot.com/12213019/diff/1/cc/tile_manager.cc#newcode243 cc/tile_manager.cc:243: live_tiles_.resize(0); On 2013/02/05 19:31:09, David Reveman wrote: > nit: ...
7 years, 10 months ago (2013-02-05 21:59:59 UTC) #4
reveman
https://chromiumcodereview.appspot.com/12213019/diff/1/cc/tile_manager.cc File cc/tile_manager.cc (right): https://chromiumcodereview.appspot.com/12213019/diff/1/cc/tile_manager.cc#newcode243 cc/tile_manager.cc:243: live_tiles_.resize(0); On 2013/02/05 22:00:00, whunt wrote: > On 2013/02/05 ...
7 years, 10 months ago (2013-02-05 22:16:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/12213019/2002
7 years, 10 months ago (2013-02-05 22:54:39 UTC) #6
commit-bot: I haz the power
Change committed as 180811
7 years, 10 months ago (2013-02-05 23:08:31 UTC) #7
reveman
lgtm with style nits I'm not a huge fan of iterating over all tiles 3 ...
7 years, 10 months ago (2013-02-06 03:20:23 UTC) #8
nduca
This patch needs more work.
7 years, 10 months ago (2013-02-06 04:09:39 UTC) #9
nduca
I dont like these added loops to all tiles. I think you should move tiles ...
7 years, 10 months ago (2013-02-06 04:17:17 UTC) #10
reveman
7 years, 10 months ago (2013-02-06 04:25:08 UTC) #11
yes, this is not ready. you can make this work by moving live_tiles_.push_back()
to the loop where we do bin_map[mts.bin[i]] and have the other loops iterate
over all_tiles. essentially only letting SortTiles() and the loop that build the
raster vector use live_tiles.

Powered by Google App Engine
This is Rietveld 408576698