Index: cc/test/fake_picture_layer_tiling_client.cc |
diff --git a/cc/test/fake_picture_layer_tiling_client.cc b/cc/test/fake_picture_layer_tiling_client.cc |
index 36d1eee5e0928edc6a60417148006c8962138648..4289b9d449fedd6fa84f494408fc936e0b244453 100644 |
--- a/cc/test/fake_picture_layer_tiling_client.cc |
+++ b/cc/test/fake_picture_layer_tiling_client.cc |
@@ -6,26 +6,14 @@ |
#include <limits> |
+#include "cc/test/fake_picture_pile_impl.h" |
#include "cc/test/fake_tile_manager.h" |
namespace cc { |
-class FakeInfinitePicturePileImpl : public PicturePileImpl { |
- public: |
- FakeInfinitePicturePileImpl() { |
- gfx::Size size(std::numeric_limits<int>::max(), |
- std::numeric_limits<int>::max()); |
- Resize(size); |
- recorded_region_ = Region(gfx::Rect(size)); |
- } |
- |
- protected: |
- virtual ~FakeInfinitePicturePileImpl() {} |
-}; |
- |
FakePictureLayerTilingClient::FakePictureLayerTilingClient() |
: tile_manager_(new FakeTileManager(&tile_manager_client_)), |
- pile_(new FakeInfinitePicturePileImpl()), |
+ pile_(FakePicturePileImpl::CreateInfiniteFilledPile()), |
twin_tiling_(NULL), |
allow_create_tile_(true), |
max_tiles_for_interest_area_(10000), |
@@ -36,7 +24,7 @@ FakePictureLayerTilingClient::FakePictureLayerTilingClient( |
ResourceProvider* resource_provider) |
: tile_manager_( |
new FakeTileManager(&tile_manager_client_, resource_provider)), |
- pile_(new FakeInfinitePicturePileImpl()), |
+ pile_(FakePicturePileImpl::CreateInfiniteFilledPile()), |
twin_tiling_(NULL), |
allow_create_tile_(true), |
max_tiles_for_interest_area_(10000), |