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

Unified Diff: cc/resources/picture_layer_tiling_set.h

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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/resources/picture.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 fc1e581f5e88ba458a270881abd5367ca1b27bb0..a4c2fd8a1eff633f5edfde796c84d802aa1fef6d 100644
--- a/cc/resources/picture_layer_tiling_set.h
+++ b/cc/resources/picture_layer_tiling_set.h
@@ -55,9 +55,15 @@ class CC_EXPORT PictureLayerTilingSet {
PictureLayerTilingSet* recycled_twin_set);
void RemoveNonIdealTilings();
+ // This function can be called on both the active and pending tree.
+ // |pending_twin_set| represents the current pending twin. In situations where
+ // this is called on the active tree in two trees situations,
+ // |pending_twin_set| represents the tiling set from the pending twin layer.
+ // In situations where this is called on the sync tree (whether it's pending
+ // or active in cases of one tree), |pending_twin_set| should be nullptr.
void UpdateTilingsToCurrentRasterSource(
scoped_refptr<RasterSource> raster_source,
- const PictureLayerTilingSet* twin_set,
+ const PictureLayerTilingSet* pending_twin_set,
const Region& layer_invalidation,
float minimum_contents_scale,
float maximum_contents_scale);
@@ -163,6 +169,10 @@ class CC_EXPORT PictureLayerTilingSet {
float skewport_target_time_in_seconds,
int skewport_extrapolation_limit_in_content_pixels);
+ void CopyTilingsFromPendingTwin(
+ const PictureLayerTilingSet* pending_twin_set,
+ const scoped_refptr<RasterSource>& raster_source);
+
// Remove one tiling.
void Remove(PictureLayerTiling* tiling);
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698