| Index: cc/resources/picture_layer_tiling_set.h
|
| diff --git a/cc/resources/picture_layer_tiling_set.h b/cc/resources/picture_layer_tiling_set.h
|
| index ddde1d7be42590903e4f2e5d2e1a0b0c019e2c62..1ac23b5872f8d2b81b81d5d59ef514be363fe932 100644
|
| --- a/cc/resources/picture_layer_tiling_set.h
|
| +++ b/cc/resources/picture_layer_tiling_set.h
|
| @@ -34,7 +34,10 @@ class CC_EXPORT PictureLayerTilingSet {
|
| size_t end;
|
| };
|
|
|
| - explicit PictureLayerTilingSet(PictureLayerTilingClient* client);
|
| + static scoped_ptr<PictureLayerTilingSet> Create(
|
| + PictureLayerTilingClient* client,
|
| + RasterSource* raster_source);
|
| +
|
| ~PictureLayerTilingSet();
|
|
|
| void SetClient(PictureLayerTilingClient* client);
|
| @@ -72,6 +75,8 @@ class CC_EXPORT PictureLayerTilingSet {
|
| // Remove all tiles; keep all tilings.
|
| void RemoveAllTiles();
|
|
|
| + void SetRasterSource(RasterSource* raster_source);
|
| +
|
| // For a given rect, iterates through tiles that can fill it. If no
|
| // set of tiles with resources can fill the rect, then it will iterate
|
| // through null tiles with valid geometry_rect() until the rect is full.
|
| @@ -123,8 +128,12 @@ class CC_EXPORT PictureLayerTilingSet {
|
| TilingRange GetTilingRange(TilingRangeType type) const;
|
|
|
| private:
|
| + PictureLayerTilingSet(PictureLayerTilingClient* client,
|
| + RasterSource* raster_source);
|
| +
|
| PictureLayerTilingClient* client_;
|
| ScopedPtrVector<PictureLayerTiling> tilings_;
|
| + RasterSource* raster_source_;
|
|
|
| friend class Iterator;
|
| DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
|
|
|