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

Unified Diff: cc/resources/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: startat1 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
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index 4d41ebff7844d0be6406f50daaa2b72555c5e825..cf48ce9cb656438a07753872f50d601223a5dc31 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -90,6 +90,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;
@@ -127,6 +138,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_;

Powered by Google App Engine
This is Rietveld 408576698