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

Issue 18581004: cc: Remove tile ref counting in tile manager. (Closed)

Created:
7 years, 5 months ago by vmpstr
Modified:
7 years, 5 months ago
Reviewers:
reveman
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

cc: Remove tile ref counting in tile manager. Instead of increasing a ref count on a tile when passing a task into raster worker pool, use a unique id and a hash map. This allows tiles to be deleted even when raster task is working on rasterizing a resource. BUG=256777 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210713

Patch Set 1 #

Patch Set 2 : #

Total comments: 21

Patch Set 3 : review #

Total comments: 14

Patch Set 4 : #

Total comments: 18

Patch Set 5 : review #

Patch Set 6 : review #

Patch Set 7 : review #

Total comments: 13

Patch Set 8 : removed small helper functions #

Total comments: 5

Patch Set 9 : s/UpdateSortedTiles/GetSortedTiles/ #

Total comments: 2

Patch Set 10 : nit + rebase #

Patch Set 11 : ut compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -180 lines) Patch
M cc/layers/picture_layer_impl.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 2 3 4 5 6 3 chunks +2 lines, -8 lines 0 comments Download
M cc/resources/tile.h View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download
M cc/resources/tile.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M cc/resources/tile_manager.h View 1 2 3 4 5 6 7 8 4 chunks +29 lines, -26 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 27 chunks +138 lines, -119 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 5 6 9 chunks +9 lines, -9 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/fake_tile_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -3 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
vmpstr
Please take a look.
7 years, 5 months ago (2013-07-02 22:34:13 UTC) #1
reveman
This eliminates the need for PictureLayerTilingClient::DestroyTile. Please remove it as part of this change. Basically ...
7 years, 5 months ago (2013-07-03 00:32:47 UTC) #2
vmpstr
PTAL. https://codereview.chromium.org/18581004/diff/2001/cc/resources/tile.h File cc/resources/tile.h (right): https://codereview.chromium.org/18581004/diff/2001/cc/resources/tile.h#newcode157 cc/resources/tile.h:157: bool can_use_lcd_text_; On 2013/07/03 00:32:47, David Reveman wrote: ...
7 years, 5 months ago (2013-07-03 19:08:03 UTC) #3
reveman
https://codereview.chromium.org/18581004/diff/2001/cc/resources/tile_manager.h File cc/resources/tile_manager.h (right): https://codereview.chromium.org/18581004/diff/2001/cc/resources/tile_manager.h#newcode114 cc/resources/tile_manager.h:114: typedef uint64 ManagedTileId; On 2013/07/03 19:08:04, vmpstr wrote: > ...
7 years, 5 months ago (2013-07-03 20:20:06 UTC) #4
vmpstr
I'm still testing this, but you can take a look to see if that's the ...
7 years, 5 months ago (2013-07-03 23:47:51 UTC) #5
reveman
This looks great! https://codereview.chromium.org/18581004/diff/14001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/18581004/diff/14001/cc/resources/tile_manager.cc#newcode139 cc/resources/tile_manager.cc:139: DCHECK(tiles_.empty()); DCHECK_EQ(0u, tiles_.size()) is preferred https://codereview.chromium.org/18581004/diff/14001/cc/resources/tile_manager.cc#newcode147 ...
7 years, 5 months ago (2013-07-04 00:46:11 UTC) #6
vmpstr
ptal. https://codereview.chromium.org/18581004/diff/14001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/18581004/diff/14001/cc/resources/tile_manager.cc#newcode139 cc/resources/tile_manager.cc:139: DCHECK(tiles_.empty()); On 2013/07/04 00:46:11, David Reveman wrote: > ...
7 years, 5 months ago (2013-07-08 17:28:30 UTC) #7
vmpstr
I think this is ready for another review. PTAL.
7 years, 5 months ago (2013-07-09 00:36:17 UTC) #8
reveman
https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile.h File cc/resources/tile.h (right): https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile.h#newcode23 cc/resources/tile.h:23: typedef uint64 Id; should this be an int and ...
7 years, 5 months ago (2013-07-09 01:15:36 UTC) #9
tomhudson
https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile_manager.cc#newcode337 cc/resources/tile_manager.cc:337: UpdateSortedTiles(); On 2013/07/09 01:15:37, David Reveman wrote: > I ...
7 years, 5 months ago (2013-07-09 09:06:07 UTC) #10
reveman
https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile_manager.cc#newcode337 cc/resources/tile_manager.cc:337: UpdateSortedTiles(); On 2013/07/09 09:06:07, tomhudson wrote: > On 2013/07/09 ...
7 years, 5 months ago (2013-07-09 15:54:03 UTC) #11
vmpstr
PTAL. https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile.h File cc/resources/tile.h (right): https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile.h#newcode23 cc/resources/tile.h:23: typedef uint64 Id; On 2013/07/09 01:15:37, David Reveman ...
7 years, 5 months ago (2013-07-09 16:48:18 UTC) #12
reveman
https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/18581004/diff/24001/cc/resources/tile_manager.cc#newcode337 cc/resources/tile_manager.cc:337: UpdateSortedTiles(); On 2013/07/09 16:48:18, vmpstr wrote: > On 2013/07/09 ...
7 years, 5 months ago (2013-07-09 18:52:29 UTC) #13
vmpstr
PTAL. https://codereview.chromium.org/18581004/diff/33001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/18581004/diff/33001/cc/resources/tile_manager.cc#newcode141 cc/resources/tile_manager.cc:141: void TileManager::UpdateSortedTiles() { On 2013/07/09 18:52:30, David Reveman ...
7 years, 5 months ago (2013-07-09 19:29:31 UTC) #14
reveman
lgtm https://codereview.chromium.org/18581004/diff/36001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/18581004/diff/36001/cc/resources/tile_manager.cc#newcode329 cc/resources/tile_manager.cc:329: sorted_tiles_.clear(); nit: please add blank line between this ...
7 years, 5 months ago (2013-07-09 20:06:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/18581004/40001
7 years, 5 months ago (2013-07-09 20:53:39 UTC) #16
vmpstr
https://codereview.chromium.org/18581004/diff/36001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/18581004/diff/36001/cc/resources/tile_manager.cc#newcode329 cc/resources/tile_manager.cc:329: sorted_tiles_.clear(); On 2013/07/09 20:06:31, David Reveman wrote: > nit: ...
7 years, 5 months ago (2013-07-09 20:55:38 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, 5 months ago (2013-07-09 21:14:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/18581004/61001
7 years, 5 months ago (2013-07-09 21:33:00 UTC) #19
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 02:08:13 UTC) #20
Message was sent while issue was closed.
Change committed as 210713

Powered by Google App Engine
This is Rietveld 408576698