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

Unified Diff: cc/resources/picture_layer_tiling.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/gpu_raster_worker_pool.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling.h
diff --git a/cc/resources/picture_layer_tiling.h b/cc/resources/picture_layer_tiling.h
index 17da548c916ae4e8e9903642f953a8f70aa5335d..eb47b60ed61cf6736d1b58f6dd0773076942bb41 100644
--- a/cc/resources/picture_layer_tiling.h
+++ b/cc/resources/picture_layer_tiling.h
@@ -29,7 +29,7 @@ class TracedValue;
namespace cc {
class PictureLayerTiling;
-class PicturePileImpl;
+class RasterSource;
class CC_EXPORT PictureLayerTilingClient {
public:
@@ -48,6 +48,7 @@ class CC_EXPORT PictureLayerTilingClient {
const PictureLayerTiling* tiling) const = 0;
virtual PictureLayerTiling* GetRecycledTwinTiling(
const PictureLayerTiling* tiling) = 0;
+ virtual TilePriority::PriorityBin GetMaxTilePriorityBin() const = 0;
virtual size_t GetMaxTilesForInterestArea() const = 0;
virtual float GetSkewportTargetTimeInSeconds() const = 0;
virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0;
@@ -144,8 +145,8 @@ class CC_EXPORT PictureLayerTiling {
const gfx::Size& layer_bounds,
PictureLayerTilingClient* client);
gfx::Size layer_bounds() const { return layer_bounds_; }
- void UpdateTilesToCurrentPile(const Region& layer_invalidation,
- const gfx::Size& new_layer_bounds);
+ void UpdateTilesToCurrentRasterSource(const Region& layer_invalidation,
+ const gfx::Size& new_layer_bounds);
void CreateMissingTilesInLiveTilesRect();
void RemoveTilesInRegion(const Region& layer_region);
@@ -205,7 +206,8 @@ class CC_EXPORT PictureLayerTiling {
}
bool IsTileOccluded(const Tile* tile) const;
- bool IsTileRequiredForActivation(const Tile* tile) const;
+ bool IsTileRequiredForActivationIfVisible(const Tile* tile) const;
+ bool IsTileRequiredForDrawIfVisible(const Tile* tile) const;
// Iterate over all tiles to fill content_rect. Even if tiles are invalid
// (i.e. no valid resource) this tiling should still iterate over them.
« no previous file with comments | « cc/resources/gpu_raster_worker_pool.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698