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

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: 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') | cc/layers/picture_layer_impl.cc » ('J')
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 fcf92fe5ff9fca6f5309da73de5ab38ff93018f3..76a0d5b9639890413e526d1a3b3d61f3c60b0574 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -77,15 +77,33 @@ class CC_EXPORT PictureLayerImpl
operator bool() const;
private:
+ enum IterationStage {
+ EVENTUALLY,
+ EVENTUALLY_AND_REQUIRED_FOR_ACTIVATION,
+ SOON,
+ SOON_AND_REQUIRED_FOR_ACTIVATION,
+ NOW,
+ NOW_AND_REQUIRED_FOR_ACTIVATION
+ };
+
+ TilePriority::PriorityBin PriorityBinFromIterationStage(
+ IterationStage stage);
+ bool RequiredForActivationFromIterationStage(IterationStage stage);
+
+ PictureLayerTilingSet::TilingRange CurrentRange();
+ int CurrentTilingIndex();
+
void AdvanceToNextIterator();
- bool IsCorrectType(
- PictureLayerTiling::TilingEvictionTileIterator* it) const;
+ bool AdvanceTiling();
+ bool AdvanceRange();
+ bool AdvanceStage();
reveman 2014/08/01 17:54:47 Please get these function names and variables name
vmpstr 2014/08/01 19:39:50 Done.
- std::vector<PictureLayerTiling::TilingEvictionTileIterator> iterators_;
- size_t iterator_index_;
- TilePriority::PriorityBin iteration_stage_;
- bool required_for_activation_;
+ PictureLayerTiling::TilingEvictionTileIterator iterator_;
+ int current_range_offset_;
reveman 2014/08/01 17:54:47 size_t instead of int?
vmpstr 2014/08/01 19:39:50 Done.
+ PictureLayerTilingSet::TilingRangeType current_tiling_range_type_;
+ IterationStage current_stage_;
reveman 2014/08/01 17:54:47 maybe current_iteration_stage_ instead to be perfe
vmpstr 2014/08/01 19:39:50 Done.
+ TreePriority tree_priority_;
PictureLayerImpl* layer_;
};
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698