Index: cc/resources/picture_layer_tiling.h |
diff --git a/cc/resources/picture_layer_tiling.h b/cc/resources/picture_layer_tiling.h |
index a252bafe82dcf8a355c8afb5a4a724169ec6ab8b..d9ae695b265e8572b9d6bb75f673a4be82a02a8c 100644 |
--- a/cc/resources/picture_layer_tiling.h |
+++ b/cc/resources/picture_layer_tiling.h |
@@ -57,10 +57,14 @@ class CC_EXPORT PictureLayerTiling { |
public: |
enum EvictionCategory { |
EVENTUALLY, |
+ EVENTUALLY_AND_REQUIRED_FOR_ACTIVATION, |
SOON, |
+ SOON_AND_REQUIRED_FOR_ACTIVATION, |
NOW, |
NOW_AND_REQUIRED_FOR_ACTIVATION |
}; |
+ enum { NUM_EVICTION_CATEGORIES = NOW_AND_REQUIRED_FOR_ACTIVATION + 1 }; |
vmpstr
2014/08/14 06:23:48
I'm not sure what our style guide says about enums
reveman
2014/08/14 09:01:50
We don't have a nice consistent mechanism for this
danakj
2014/08/14 16:55:26
Security team (tsepez) has been adding a LAST_FOO_
vmpstr
2014/08/14 22:05:50
Removed this for now, added a TODO instead.
|
+ |
class CC_EXPORT TilingRasterTileIterator { |
public: |
TilingRasterTileIterator(); |
@@ -336,10 +340,7 @@ class CC_EXPORT PictureLayerTiling { |
bool has_soon_border_rect_tiles_; |
bool has_eventually_rect_tiles_; |
- std::vector<Tile*> eventually_eviction_tiles_; |
- std::vector<Tile*> soon_eviction_tiles_; |
- std::vector<Tile*> now_eviction_tiles_; |
- std::vector<Tile*> now_and_required_for_activation_eviction_tiles_; |
+ std::vector<Tile*> eviction_tiles_[NUM_EVICTION_CATEGORIES]; |
bool eviction_tiles_cache_valid_; |
TreePriority eviction_cache_tree_priority_; |