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

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: removed dead code Created 6 years, 10 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/test/fake_picture_layer_impl.cc ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('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.h
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h
index 6383a22193afe4831c35a8cc856333796f8787b8..5989bba5c64eba19bb0ba00be8505f8328565d5e 100644
--- a/cc/test/fake_picture_layer_tiling_client.h
+++ b/cc/test/fake_picture_layer_tiling_client.h
@@ -26,6 +26,9 @@ 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;
+ virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE;
void SetTileSize(const gfx::Size& tile_size);
gfx::Size TileSize() const { return tile_size_; }
@@ -40,6 +43,15 @@ 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;
+ }
+ void set_skewport_extrapolation_limit_in_content_pixels(int limit) {
+ skewport_extrapolation_limit_in_content_pixels_ = limit;
+ }
TileManager* tile_manager() const {
return tile_manager_.get();
@@ -54,6 +66,9 @@ 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_;
+ int skewport_extrapolation_limit_in_content_pixels_;
};
} // namespace cc
« no previous file with comments | « cc/test/fake_picture_layer_impl.cc ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698