Chromium Code Reviews| Index: cc/layers/picture_layer_impl.h |
| diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h |
| index d49205137510bd9d5f3bc57e89a785d42de65616..680eec445c4d7b1ffa6f5b168e57c735e3b6cd50 100644 |
| --- a/cc/layers/picture_layer_impl.h |
| +++ b/cc/layers/picture_layer_impl.h |
| @@ -77,14 +77,25 @@ class CC_EXPORT PictureLayerImpl |
| operator bool() const; |
| private: |
| + struct TilingIterationRange { |
| + int start_index; |
| + int one_past_end_index; |
| + }; |
| + |
| + void ConstructRanges(); |
| + bool CurrentTilingIndexInRange(); |
| void AdvanceToNextIterator(); |
| - bool IsCorrectType( |
| - PictureLayerTiling::TilingEvictionTileIterator* it) const; |
| + bool AdvanceTiling(); |
| + bool AdvanceRange(); |
| + bool AdvanceStage(); |
| - std::vector<PictureLayerTiling::TilingEvictionTileIterator> iterators_; |
| - size_t iterator_index_; |
| + PictureLayerTiling::TilingEvictionTileIterator iterator_; |
| + int tiling_index_; |
| TilePriority::PriorityBin iteration_stage_; |
| + TilingIterationRange ranges_[5]; |
|
reveman
2014/07/29 16:50:49
Some enums representing each stage and each range
vmpstr
2014/07/29 17:08:49
Ok, I will do this.
|
| + int range_index_; |
| bool required_for_activation_; |
| + TreePriority tree_priority_; |
| PictureLayerImpl* layer_; |
| }; |
|
reveman
2014/07/29 16:50:49
If I understand this iterator correctly. This is w
vmpstr
2014/07/29 17:08:49
That's kind of what we have with AdvanceTiling/Adv
reveman
2014/07/29 18:04:32
Yea, that's what I was thinking. Maybe the RangeIt
|