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

Unified Diff: cc/tiles/tile.h

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: rebase Created 5 years, 7 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/tiles/picture_layer_tiling.cc ('k') | cc/tiles/tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile.h
diff --git a/cc/tiles/tile.h b/cc/tiles/tile.h
index 68c4fc13e340a03725806ccf75e2b186827ce831..e53c2ac52f808a23e5658b476eca2244b3e6f005 100644
--- a/cc/tiles/tile.h
+++ b/cc/tiles/tile.h
@@ -68,6 +68,17 @@ class CC_EXPORT Tile {
int tiling_i_index() const { return tiling_i_index_; }
int tiling_j_index() const { return tiling_j_index_; }
+ void SetInvalidated(const gfx::Rect& invalid_content_rect,
+ Id previous_tile_id) {
+ invalidated_content_rect_ = invalid_content_rect;
+ invalidated_id_ = previous_tile_id;
+ }
+
+ Id invalidated_id() const { return invalidated_id_; }
+ const gfx::Rect& invalidated_content_rect() const {
+ return invalidated_content_rect_;
+ }
+
private:
friend class TileManager;
friend class FakeTileManager;
@@ -103,6 +114,12 @@ class CC_EXPORT Tile {
Id id_;
static Id s_next_id_;
+ // The rect bounding the changes in this Tile vs the previous tile it
+ // replaced.
+ gfx::Rect invalidated_content_rect_;
+ // The |id_| of the Tile that was invalidated and replaced by this tile.
+ Id invalidated_id_;
+
unsigned scheduled_priority_;
scoped_refptr<RasterTask> raster_task_;
« no previous file with comments | « cc/tiles/picture_layer_tiling.cc ('k') | cc/tiles/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698