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

Unified Diff: cc/test/fake_picture_layer_tiling_client.h

Issue 140513006: cc: Simplify picture layer tiling update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
Index: cc/test/fake_picture_layer_tiling_client.h
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h
index 6383a22193afe4831c35a8cc856333796f8787b8..48ad0e9040dd60d32b8aafa347c4df99bf89733e 100644
--- a/cc/test/fake_picture_layer_tiling_client.h
+++ b/cc/test/fake_picture_layer_tiling_client.h
@@ -26,6 +26,8 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
virtual void UpdatePile(Tile* tile) OVERRIDE {}
virtual gfx::Size CalculateTileSize(
const gfx::Size& content_bounds) const OVERRIDE;
+ virtual size_t GetMaxTilesForInterestArea() const OVERRIDE;
+ virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE;
void SetTileSize(const gfx::Size& tile_size);
gfx::Size TileSize() const { return tile_size_; }
@@ -40,6 +42,12 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
void set_text_rect(const gfx::Rect& rect) { text_rect_ = rect; }
void set_allow_create_tile(bool allow) { allow_create_tile_ = allow; }
void set_invalidation(const Region& region) { invalidation_ = region; }
+ void set_max_tiles_for_interest_area(size_t area) {
+ max_tiles_for_interest_area_ = area;
+ }
+ void set_skewport_target_time_in_seconds(float time) {
+ skewport_target_time_in_seconds_ = time;
+ }
TileManager* tile_manager() const {
return tile_manager_.get();
@@ -54,6 +62,8 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
gfx::Rect text_rect_;
bool allow_create_tile_;
Region invalidation_;
+ size_t max_tiles_for_interest_area_;
+ float skewport_target_time_in_seconds_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698