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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 416403007: cc: Only create tiling eviction iterators as they are required. (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') | 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..16274b077ab8949671daed571946fff5012ebabb 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -80,13 +80,15 @@ class CC_EXPORT PictureLayerImpl
void AdvanceToNextIterator();
bool IsCorrectType(
PictureLayerTiling::TilingEvictionTileIterator* it) const;
+ void EnsureCurrentIteratorCreated();
std::vector<PictureLayerTiling::TilingEvictionTileIterator> iterators_;
reveman 2014/07/26 00:30:49 is there no compile time limit to the number of it
vmpstr 2014/07/28 15:06:16 I think it might make sense to limit this at some
reveman 2014/07/28 16:19:33 What if we passed that stage information to the Ti
vmpstr 2014/07/28 18:15:08 I feel that it's a bit of a misuse of the iterator
reveman 2014/07/28 19:06:14 I'm rather thinking of this as different collectio
+ std::vector<PictureLayerTiling*> tilings_;
reveman 2014/07/26 00:30:49 do we really need this vector? is there some way w
vmpstr 2014/07/28 15:06:16 It's possible, but I think this is a simpler solut
reveman 2014/07/28 16:19:34 I don't like that we're building a reliance on vec
vmpstr 2014/07/28 18:15:08 The only real problem is that we don't know how ma
reveman 2014/07/28 19:06:14 The key as you mentioned is to have a TilingEvicti
vmpstr 2014/07/28 19:27:04 I just meant that if we have a PriorityBin passed
size_t iterator_index_;
TilePriority::PriorityBin iteration_stage_;
bool required_for_activation_;
-
PictureLayerImpl* layer_;
+ TreePriority tree_priority_;
};
static scoped_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
« 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