| Index: cc/layers/tiled_layer_impl.h
|
| diff --git a/cc/layers/tiled_layer_impl.h b/cc/layers/tiled_layer_impl.h
|
| index e3ace3497a526e9e117aa91e49be99fc25ceb7cf..039bf19a8005114fc2d0832d5e378023980ef640 100644
|
| --- a/cc/layers/tiled_layer_impl.h
|
| +++ b/cc/layers/tiled_layer_impl.h
|
| @@ -18,7 +18,15 @@ class DrawableTile;
|
| class CC_EXPORT TiledLayerImpl : public LayerImpl {
|
| public:
|
| static scoped_ptr<TiledLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
|
| - return make_scoped_ptr(new TiledLayerImpl(tree_impl, id));
|
| + return make_scoped_ptr(
|
| + new TiledLayerImpl(tree_impl, id, new LayerImpl::SyncedScrollOffset));
|
| + }
|
| + static scoped_ptr<TiledLayerImpl> Create(
|
| + LayerTreeImpl* tree_impl,
|
| + int id,
|
| + scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset) {
|
| + return make_scoped_ptr(
|
| + new TiledLayerImpl(tree_impl, id, synced_scroll_offset));
|
| }
|
| ~TiledLayerImpl() override;
|
|
|
| @@ -51,6 +59,10 @@ class CC_EXPORT TiledLayerImpl : public LayerImpl {
|
|
|
| protected:
|
| TiledLayerImpl(LayerTreeImpl* tree_impl, int id);
|
| + TiledLayerImpl(
|
| + LayerTreeImpl* tree_impl,
|
| + int id,
|
| + scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset);
|
| // Exposed for testing.
|
| bool HasTileAt(int i, int j) const;
|
| bool HasResourceIdForTileAt(int i, int j) const;
|
|
|