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

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 674103004: [WIP] cc: Use reverse spiral iterator in tiling eviction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 private: 82 private:
83 bool AdvanceToNextCategory(); 83 bool AdvanceToNextCategory();
84 bool AdvanceToNextTilingRangeType(); 84 bool AdvanceToNextTilingRangeType();
85 bool AdvanceToNextTiling(); 85 bool AdvanceToNextTiling();
86 86
87 PictureLayerTilingSet::TilingRange CurrentTilingRange() const; 87 PictureLayerTilingSet::TilingRange CurrentTilingRange() const;
88 size_t CurrentTilingIndex() const; 88 size_t CurrentTilingIndex() const;
89 89
90 PictureLayerImpl* layer_; 90 PictureLayerImpl* layer_;
91 TreePriority tree_priority_; 91 TreePriority tree_priority_;
92 bool layer_has_twin_layer_;
92 93
93 PictureLayerTiling::EvictionCategory current_category_; 94 PictureLayerTiling::EvictionCategory current_category_;
94 PictureLayerTilingSet::TilingRangeType current_tiling_range_type_; 95 PictureLayerTilingSet::TilingRangeType current_tiling_range_type_;
95 size_t current_tiling_; 96 size_t current_tiling_;
96 PictureLayerTiling::TilingEvictionTileIterator current_iterator_; 97 PictureLayerTiling::TilingEvictionTileIterator current_iterator_;
97 }; 98 };
98 99
99 static scoped_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) { 100 static scoped_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
100 return make_scoped_ptr(new PictureLayerImpl(tree_impl, id)); 101 return make_scoped_ptr(new PictureLayerImpl(tree_impl, id));
101 } 102 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // frame that has a valid viewport for prioritizing tiles. 232 // frame that has a valid viewport for prioritizing tiles.
232 gfx::Rect visible_rect_for_tile_priority_; 233 gfx::Rect visible_rect_for_tile_priority_;
233 234
234 friend class PictureLayer; 235 friend class PictureLayer;
235 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 236 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
236 }; 237 };
237 238
238 } // namespace cc 239 } // namespace cc
239 240
240 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 241 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« 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