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

Issue 11953005: cc: Update picture pile on tiles to prevent memory leak (Closed)

Created:
7 years, 11 months ago by enne (OOO)
Modified:
7 years, 11 months ago
Reviewers:
reveman
CC:
chromium-reviews, cc-bugs_chromium.org, danakj, Yaron
Visibility:
Public.

Description

cc: Update picture pile on tiles to prevent memory leak A given PicturePileImpl corresponds to a given main thread frame. It should go out of scope when that frame is no longer being used. Currently, as Tile holds a ref on PicturePileImpl, it won't go out of scope if the Tile persists, which could happen if the Tile never gets invalidated. To prevent this, the PicturePileImpl on each Tile is updated to the newest version of the PicturePileImpl when a tree is activated. This will allow old PicturePileImpls to be destroyed on a more regular basis. Raster jobs in flight hold their own ref to a per-thead clone of the PicturePileImpl, so this will not affect them. When the job finishes, the clone will also be destroyed. R=reveman@chromium.org BUG=171003 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178106

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rename MoveTilePriorities to DidBecomeActive #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -13 lines) Patch
M cc/picture_layer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/picture_layer_impl.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M cc/picture_layer_tiling.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M cc/picture_layer_tiling.cc View 1 1 chunk +11 lines, -5 lines 0 comments Download
M cc/picture_layer_tiling_set.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M cc/picture_layer_tiling_set.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/tile.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
enne (OOO)
7 years, 11 months ago (2013-01-20 06:47:25 UTC) #1
reveman
Would it help to drop pile refs from tiles as raster completes? I'm guessing no ...
7 years, 11 months ago (2013-01-20 19:20:29 UTC) #2
reveman
On 2013/01/20 19:20:29, David Reveman wrote: > Would it help to drop pile refs from ...
7 years, 11 months ago (2013-01-20 22:28:38 UTC) #3
enne (OOO)
On 2013/01/20 22:28:38, David Reveman wrote: > On 2013/01/20 19:20:29, David Reveman wrote: > > ...
7 years, 11 months ago (2013-01-20 22:43:52 UTC) #4
reveman
lgtm
7 years, 11 months ago (2013-01-20 23:57:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/11953005/7001
7 years, 11 months ago (2013-01-22 18:32:01 UTC) #6
commit-bot: I haz the power
7 years, 11 months ago (2013-01-22 21:38:58 UTC) #7
Message was sent while issue was closed.
Change committed as 178106

Powered by Google App Engine
This is Rietveld 408576698