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 3d8f93f0b51d0af2832e6bc7c4dc5852adfee48a..649f90fab36deab7ca576a5ad39724cc95d430dd 100644 |
--- a/cc/test/fake_picture_layer_impl.h |
+++ b/cc/test/fake_picture_layer_impl.h |
@@ -17,11 +17,22 @@ class FakePictureLayerImpl : public PictureLayerImpl { |
return make_scoped_ptr(new FakePictureLayerImpl(tree_impl, id)); |
} |
+ // Create layer from a pile that covers the entire layer. |
static scoped_ptr<FakePictureLayerImpl> CreateWithPile( |
LayerTreeImpl* tree_impl, int id, scoped_refptr<PicturePileImpl> pile) { |
return make_scoped_ptr(new FakePictureLayerImpl(tree_impl, id, pile)); |
} |
+ // Create layer from a pile that only covers part of the layer. |
+ static scoped_ptr<FakePictureLayerImpl> CreateWithPartialPile( |
+ LayerTreeImpl* tree_impl, |
+ int id, |
+ scoped_refptr<PicturePileImpl> pile, |
+ const gfx::Size& layer_bounds) { |
+ return make_scoped_ptr( |
+ new FakePictureLayerImpl(tree_impl, id, pile, layer_bounds)); |
+ } |
+ |
virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
OVERRIDE; |
virtual void AppendQuads(QuadSink* quad_sink, |
@@ -69,6 +80,10 @@ class FakePictureLayerImpl : public PictureLayerImpl { |
LayerTreeImpl* tree_impl, |
int id, |
scoped_refptr<PicturePileImpl> pile); |
+ FakePictureLayerImpl(LayerTreeImpl* tree_impl, |
+ int id, |
+ scoped_refptr<PicturePileImpl> pile, |
+ const gfx::Size& layer_bounds); |
FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id); |
private: |