Descriptioncc: Make the TileManager operate on ManagedTileState directly
Change the TileManager to operate on ManagedTileState, so that
it can be made unaware of Tiles that are unimportant (rather than
storing them in separate structures).
Change the TileMap to hold a TileHandle structure, which holds
a scoped_refptr to a separate Tile and ManagedTileState. These
are always allocated together, but will be separated soon.
Make the ManagedTileState hold a scoped_refptr to its owning Tile.
This allows the patch to minimize risk by not trying to duplicate
and track the state of hte Tile in the ManagedTileState. It may
be that future patches will want to do this.
The destruction order is that the PictureLayerTiling will clear
its TileMap, which will cause the TileHandle to be freed,
which will cause the ManagedTilesTate to be freed, which will
cause (or allow) the Tile state to be freed.
BUG=165852
Patch Set 1 #Patch Set 2 : Resolve against HEAD #Patch Set 3 : Fix clang dtor nits #
Messages
Total messages: 2 (0 generated)
|