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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 428533008: cc: Remove vectors from tiling eviction tile iterator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 years, 5 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 | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698