summaryrefslogtreecommitdiffstats
path: root/cc/picture_layer_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/picture_layer_impl.cc')
-rw-r--r--cc/picture_layer_impl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/picture_layer_impl.cc b/cc/picture_layer_impl.cc
index 1809596..48cd82d 100644
--- a/cc/picture_layer_impl.cc
+++ b/cc/picture_layer_impl.cc
@@ -13,7 +13,8 @@ namespace cc {
PictureLayerImpl::PictureLayerImpl(int id) :
LayerImpl(id),
- tilings_(this) {
+ tilings_(this),
+ pile_(PicturePileImpl::Create()) {
}
PictureLayerImpl::~PictureLayerImpl() {
@@ -96,7 +97,7 @@ scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling*,
return make_scoped_refptr(new Tile(
tile_manager,
- &pile_,
+ pile_.get(),
rect.size(),
GL_RGBA,
rect));