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

Unified Diff: cc/resources/tile.cc

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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.cc
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc
index c0db9d4ac2c5d87123f6a5e5345560447cd060f5..065320d45964217d2f02e483332d1171ea5cb881 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -33,6 +33,9 @@ Tile::Tile(TileManager* tile_manager,
source_frame_number_(source_frame_number),
flags_(flags),
is_shared_(false),
+ tiling_i_index_(-1),
+ tiling_j_index_(-1),
+ required_for_activation_(false),
id_(s_next_id_++) {
set_picture_pile(picture_pile);
for (int i = 0; i < NUM_TREES; i++)
@@ -50,15 +53,6 @@ void Tile::SetPriority(WhichTree tree, const TilePriority& priority) {
return;
priority_[tree] = priority;
- tile_manager_->DidChangeTilePriority(this);
-}
-
-void Tile::MarkRequiredForActivation() {
- if (priority_[PENDING_TREE].required_for_activation)
- return;
-
- priority_[PENDING_TREE].required_for_activation = true;
- tile_manager_->DidChangeTilePriority(this);
}
void Tile::AsValueInto(base::debug::TracedValue* res) const {

Powered by Google App Engine
This is Rietveld 408576698