Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: cc/test/fake_picture_layer_impl.h

Issue 235753002: cc: Give TilingData a Rect instead of a Size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Git cl format Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698