| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |