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

Unified Diff: cc/test/fake_picture_layer_tiling_client.h

Issue 690063002: cc: Do not ignore layers without valid priorities during eviction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: CreateWith{Pile => RasterSource} Created 6 years, 1 month 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_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 3df4ca4120af885fdc2f18ffcac9b661062df2a0..c8cc4e21c4c29d41e2f8c5d82700e7f44388c99f 100644
--- a/cc/test/fake_picture_layer_tiling_client.h
+++ b/cc/test/fake_picture_layer_tiling_client.h
@@ -25,6 +25,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
const gfx::Rect& rect) override;
RasterSource* GetRasterSource() override;
gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
+ TilePriority::PriorityBin GetMaxTilePriorityBin() const override;
size_t GetMaxTilesForInterestArea() const override;
float GetSkewportTargetTimeInSeconds() const override;
int GetSkewportExtrapolationLimitInContentPixels() const override;
@@ -47,6 +48,9 @@ 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_tile_priority_bin(TilePriority::PriorityBin bin) {
+ max_tile_priority_bin_ = bin;
+ }
void set_max_tiles_for_interest_area(size_t area) {
max_tiles_for_interest_area_ = area;
}
@@ -73,6 +77,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
gfx::Rect text_rect_;
bool allow_create_tile_;
Region invalidation_;
+ TilePriority::PriorityBin max_tile_priority_bin_;
size_t max_tiles_for_interest_area_;
float skewport_target_time_in_seconds_;
int skewport_extrapolation_limit_in_content_pixels_;
« no previous file with comments | « cc/resources/tile_manager_unittest.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