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

Unified Diff: cc/resources/picture_layer_tiling_set.h

Issue 732423002: Update from chromium https://crrev.com/304586 (Closed) Base URL: https://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/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set.h
diff --git a/cc/resources/picture_layer_tiling_set.h b/cc/resources/picture_layer_tiling_set.h
index ddde1d7be42590903e4f2e5d2e1a0b0c019e2c62..489bc0c37b07c50370d209da100baa8680f11fa4 100644
--- a/cc/resources/picture_layer_tiling_set.h
+++ b/cc/resources/picture_layer_tiling_set.h
@@ -34,7 +34,9 @@ class CC_EXPORT PictureLayerTilingSet {
size_t end;
};
- explicit PictureLayerTilingSet(PictureLayerTilingClient* client);
+ static scoped_ptr<PictureLayerTilingSet> Create(
+ PictureLayerTilingClient* client);
+
~PictureLayerTilingSet();
void SetClient(PictureLayerTilingClient* client);
@@ -50,7 +52,8 @@ class CC_EXPORT PictureLayerTilingSet {
bool SyncTilings(const PictureLayerTilingSet& other,
const gfx::Size& new_layer_bounds,
const Region& layer_invalidation,
- float minimum_contents_scale);
+ float minimum_contents_scale,
+ RasterSource* raster_source);
PictureLayerTiling* AddTiling(float contents_scale,
const gfx::Size& layer_bounds);
@@ -72,6 +75,13 @@ class CC_EXPORT PictureLayerTilingSet {
// Remove all tiles; keep all tilings.
void RemoveAllTiles();
+ // Update the rects and priorities for tiles based on the given information.
+ bool UpdateTilePriorities(const gfx::Rect& required_rect_in_layer_space,
+ float ideal_contents_scale,
+ double current_frame_time_in_seconds,
+ const Occlusion& occlusion_in_layer_space,
+ bool can_require_tiles_for_activation);
+
// For a given rect, iterates through tiles that can fill it. If no
// set of tiles with resources can fill the rect, then it will iterate
// through null tiles with valid geometry_rect() until the rect is full.
@@ -123,6 +133,8 @@ class CC_EXPORT PictureLayerTilingSet {
TilingRange GetTilingRange(TilingRangeType type) const;
private:
+ explicit PictureLayerTilingSet(PictureLayerTilingClient* client);
+
PictureLayerTilingClient* client_;
ScopedPtrVector<PictureLayerTiling> tilings_;
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698