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

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') | 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 d49205137510bd9d5f3bc57e89a785d42de65616..2f1814b2aadbb24bfd7ded2db3aeee4f392f16ca 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -77,14 +77,33 @@ class CC_EXPORT PictureLayerImpl
operator bool() const;
private:
+ enum RangeType {
+ HIGHER_THAN_HIGH_RES,
+ LOWER_THAN_LOW_RES,
+ BETWEEN_HIGH_AND_LOW_RES,
+ LOW_RES,
+ HIGH_RES,
+ NUM_RANGE_TYPES
+ };
+ 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_;
reveman 2014/07/29 21:41:33 nit: current_tiling_ btw, might be cleaner to mai
vmpstr 2014/07/30 00:18:52 I changed it to current_tiling_index_. I would pre
reveman 2014/07/30 16:06:48 Acknowledged.
TilePriority::PriorityBin iteration_stage_;
reveman 2014/07/29 21:41:33 Maybe add something like this to make it clear tha
vmpstr 2014/07/30 00:18:52 Done.
+ TilingIterationRange ranges_[NUM_RANGE_TYPES];
+ int range_index_;
reveman 2014/07/29 21:41:33 nit: current_range_ and "TilingSet::TilingRangeTy
vmpstr 2014/07/30 00:18:52 Likewise I changed it to current_range_type_
reveman 2014/07/30 16:06:48 Acknowledged.
bool required_for_activation_;
+ 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