| Index: cc/test/fake_picture_layer_impl.h
|
| diff --git a/cc/test/fake_picture_layer_impl.h b/cc/test/fake_picture_layer_impl.h
|
| index a0e16e8345671277ad0f698daf5f6d4a15ab38c7..caac373c53aa9eae748cbf9e30d5650c487614d1 100644
|
| --- a/cc/test/fake_picture_layer_impl.h
|
| +++ b/cc/test/fake_picture_layer_impl.h
|
| @@ -121,6 +121,14 @@ class FakePictureLayerImpl : public PictureLayerImpl {
|
| void ResetAllTilesPriorities();
|
| PictureLayerTilingSet* GetTilings() { return tilings_.get(); }
|
|
|
| + // Add the given tiling as a "used" tiling during AppendQuads. This ensures
|
| + // that future calls to UpdateTiles don't delete the tiling.
|
| + void MarkAllTilingsUsed() {
|
| + last_append_quads_tilings_.clear();
|
| + for (size_t i = 0; i < tilings_->num_tilings(); ++i)
|
| + last_append_quads_tilings_.push_back(tilings_->tiling_at(i));
|
| + }
|
| +
|
| size_t release_resources_count() const { return release_resources_count_; }
|
| void reset_release_resources_count() { release_resources_count_ = 0; }
|
|
|
| @@ -141,6 +149,11 @@ class FakePictureLayerImpl : public PictureLayerImpl {
|
| bool is_mask,
|
| const gfx::Size& layer_bounds);
|
| FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask);
|
| + FakePictureLayerImpl(
|
| + LayerTreeImpl* tree_impl,
|
| + int id,
|
| + bool is_mask,
|
| + scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset);
|
|
|
| private:
|
| gfx::Size fixed_tile_size_;
|
|
|