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

Issue 12226046: Added a vector to TileManager to explicitly track live or allocated tiles. (Closed)

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

Description

Added a vector to TileManager to explicitly track live or allocated tiles. The new vector should be exactly the elements that AssignGpuMemoryToTiles cares about. In addition this patch fuses some loops (4 loops fused into 2). I'm measuring about a 70% performance boost to ManageTiles on my linux machine. BUG=174707 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182105

Patch Set 1 #

Patch Set 2 : fixing lint issues #

Total comments: 9

Patch Set 3 : added some minor fixes I wanted to roll into the patch #

Patch Set 4 : addressing Nat's comments #

Patch Set 5 : rebaselining to origin/master #

Total comments: 7

Patch Set 6 : adding unfreeable tiles to the live/active tile set and rebasing to tip of tree #

Patch Set 7 : slight change to live test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -101 lines) Patch
M cc/tile.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/tile_manager.h View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 5 6 14 chunks +83 lines, -96 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
whunt
Spiratually similar to a previous patch of mine with the _live_tiles. This one also tracks ...
7 years, 10 months ago (2013-02-06 23:08:49 UTC) #1
whunt
7 years, 10 months ago (2013-02-06 23:32:23 UTC) #2
nduca
https://codereview.chromium.org/12226046/diff/5001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12226046/diff/5001/cc/tile_manager.cc#newcode234 cc/tile_manager.cc:234: std::sort(live_or_allocated_tiles_.begin(), you might need to rebase on origin/master so ...
7 years, 10 months ago (2013-02-06 23:54:02 UTC) #3
whunt
https://codereview.chromium.org/12226046/diff/5001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12226046/diff/5001/cc/tile_manager.cc#newcode369 cc/tile_manager.cc:369: for (size_t i = 0; i < all_tiles_.size(); i++) ...
7 years, 10 months ago (2013-02-07 00:30:48 UTC) #4
whunt
Did mail for this ever go out?
7 years, 10 months ago (2013-02-11 19:01:45 UTC) #5
reveman
https://codereview.chromium.org/12226046/diff/11001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12226046/diff/11001/cc/tile_manager.cc#newcode52 cc/tile_manager.cc:52: if (prio.time_to_visible_in_seconds >= std::numeric_limits<float>::max()) why did you change this? ...
7 years, 10 months ago (2013-02-11 22:42:28 UTC) #6
whunt
https://codereview.chromium.org/12226046/diff/11001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12226046/diff/11001/cc/tile_manager.cc#newcode52 cc/tile_manager.cc:52: if (prio.time_to_visible_in_seconds >= std::numeric_limits<float>::max()) On 2013/02/11 22:42:28, David Reveman ...
7 years, 10 months ago (2013-02-11 22:58:41 UTC) #7
reveman
https://codereview.chromium.org/12226046/diff/11001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12226046/diff/11001/cc/tile_manager.cc#newcode52 cc/tile_manager.cc:52: if (prio.time_to_visible_in_seconds >= std::numeric_limits<float>::max()) On 2013/02/11 22:58:41, whunt wrote: ...
7 years, 10 months ago (2013-02-11 23:53:57 UTC) #8
nduca
Heads up: We need something for this in by Tuesday build.
7 years, 10 months ago (2013-02-12 05:37:45 UTC) #9
whunt
updating https://codereview.chromium.org/12226046/diff/11001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12226046/diff/11001/cc/tile_manager.cc#newcode349 cc/tile_manager.cc:349: tile->GetResourceId() != 0) { On 2013/02/11 23:53:57, David ...
7 years, 10 months ago (2013-02-12 19:15:36 UTC) #10
whunt
Does this address the issue David?
7 years, 10 months ago (2013-02-12 19:39:37 UTC) #11
whunt
7 years, 10 months ago (2013-02-12 20:00:21 UTC) #12
reveman
lgtm
7 years, 10 months ago (2013-02-12 20:07:12 UTC) #13
nduca
lgtm but how do we increase our confidence in this patch such that we can ...
7 years, 10 months ago (2013-02-12 20:23:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/12226046/1006
7 years, 10 months ago (2013-02-12 21:16:21 UTC) #15
nduca
7 years, 10 months ago (2013-02-13 03:30:12 UTC) #16
Message was sent while issue was closed.
Committed manually as r182105 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698