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

Unified Diff: cc/test/fake_picture_layer_tiling_client.cc

Issue 196023015: Revert of cc: Replace recorded region with direct map lookup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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_unittest.cc ('k') | cc/test/fake_picture_pile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4289b9d449fedd6fa84f494408fc936e0b244453..36d1eee5e0928edc6a60417148006c8962138648 100644
--- a/cc/test/fake_picture_layer_tiling_client.cc
+++ b/cc/test/fake_picture_layer_tiling_client.cc
@@ -6,14 +6,26 @@
#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_(FakePicturePileImpl::CreateInfiniteFilledPile()),
+ pile_(new FakeInfinitePicturePileImpl()),
twin_tiling_(NULL),
allow_create_tile_(true),
max_tiles_for_interest_area_(10000),
@@ -24,7 +36,7 @@
ResourceProvider* resource_provider)
: tile_manager_(
new FakeTileManager(&tile_manager_client_, resource_provider)),
- pile_(FakePicturePileImpl::CreateInfiniteFilledPile()),
+ pile_(new FakeInfinitePicturePileImpl()),
twin_tiling_(NULL),
allow_create_tile_(true),
max_tiles_for_interest_area_(10000),
« no previous file with comments | « cc/resources/tile_manager_unittest.cc ('k') | cc/test/fake_picture_pile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698