diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 12:58:18 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 12:58:18 +0000 |
commit | 91e89bc85631eb357ead53afc8a5642fe7067b60 (patch) | |
tree | 97d0dc2f0c49043c22002f0a36fa08e9cfba65e2 /cc/test/fake_picture_layer_tiling_client.h | |
parent | a09159a8a3658a616ebc7e32703c25366ac65a0f (diff) | |
download | chromium_src-91e89bc85631eb357ead53afc8a5642fe7067b60.zip chromium_src-91e89bc85631eb357ead53afc8a5642fe7067b60.tar.gz chromium_src-91e89bc85631eb357ead53afc8a5642fe7067b60.tar.bz2 |
cc: Add ref counted PicturePileImpl class and give each Tile instance a ref.
This is required as tiles are reference counted and there's no
guarantee that they have been destroyed by the time the layer owning
the picture pile is destroyed.
BUG=skia:988
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/11434016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_layer_tiling_client.h')
-rw-r--r-- | cc/test/fake_picture_layer_tiling_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h index ecadac0..b61b83e 100644 --- a/cc/test/fake_picture_layer_tiling_client.h +++ b/cc/test/fake_picture_layer_tiling_client.h @@ -6,7 +6,7 @@ #define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ #include "cc/picture_layer_tiling.h" -#include "cc/picture_pile.h" +#include "cc/picture_pile_impl.h" #include "cc/test/fake_tile_manager_client.h" #include "cc/tile.h" #include "cc/tile_manager.h" @@ -29,7 +29,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient { protected: FakeTileManagerClient tile_manager_client_; TileManager tile_manager_; - PicturePile pile_; + scoped_refptr<PicturePileImpl> pile_; gfx::Size tile_size_; }; |