Index: cc/resources/tile.h |
diff --git a/cc/resources/tile.h b/cc/resources/tile.h |
index 5d49275716948464ffc746b9aaf5510bfd24c081..25d14588daf315f77a8583d1177ba78bde9cadbd 100644 |
--- a/cc/resources/tile.h |
+++ b/cc/resources/tile.h |
@@ -84,10 +84,9 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> { |
} |
} |
- void MarkRequiredForActivation(); |
- |
- bool required_for_activation() const { |
- return priority_[PENDING_TREE].required_for_activation; |
+ bool required_for_activation() const { return required_for_activation_; } |
+ void set_required_for_activation(bool is_required) { |
+ required_for_activation_ = is_required; |
} |
bool use_picture_analysis() const { |
@@ -95,7 +94,9 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> { |
} |
bool NeedsRasterForMode(RasterMode mode) const { |
- return !managed_state_.tile_versions[mode].IsReadyToDraw(); |
+ return managed_state_.tile_versions[mode].mode() == |
+ ManagedTileState::TileVersion::PICTURE_PILE_MODE || |
+ !managed_state_.tile_versions[mode].IsReadyToDraw(); |
} |
bool HasResources() const { |
@@ -147,6 +148,13 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> { |
RasterMode DetermineRasterModeForTree(WhichTree tree) const; |
RasterMode DetermineOverallRasterMode() const; |
+ void set_tiling_index(int i, int j) { |
+ tiling_i_index_ = i; |
+ tiling_j_index_ = j; |
+ } |
+ int tiling_i_index() const { return tiling_i_index_; } |
+ int tiling_j_index() const { return tiling_j_index_; } |
+ |
// Functionality used in tests. |
RasterMode GetRasterModeForTesting() const { |
return managed_state().raster_mode; |
@@ -194,6 +202,9 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> { |
int source_frame_number_; |
int flags_; |
bool is_shared_; |
+ int tiling_i_index_; |
+ int tiling_j_index_; |
+ bool required_for_activation_; |
Id id_; |
static Id s_next_id_; |