| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class CC_EXPORT LayerRasterTileIterator { | 31 class CC_EXPORT LayerRasterTileIterator { |
| 32 public: | 32 public: |
| 33 LayerRasterTileIterator(); | 33 LayerRasterTileIterator(); |
| 34 LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res); | 34 LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res); |
| 35 ~LayerRasterTileIterator(); | 35 ~LayerRasterTileIterator(); |
| 36 | 36 |
| 37 Tile* operator*(); | 37 Tile* operator*(); |
| 38 LayerRasterTileIterator& operator++(); | 38 LayerRasterTileIterator& operator++(); |
| 39 operator bool() const; | 39 operator bool() const; |
| 40 | 40 |
| 41 bool HasTilesRequiredForActivation() const; |
| 42 |
| 41 private: | 43 private: |
| 42 enum IteratorType { LOW_RES, HIGH_RES, NUM_ITERATORS }; | 44 enum IteratorType { LOW_RES, HIGH_RES, NUM_ITERATORS }; |
| 43 | 45 |
| 44 PictureLayerImpl* layer_; | 46 PictureLayerImpl* layer_; |
| 45 | 47 |
| 46 struct IterationStage { | 48 struct IterationStage { |
| 47 IteratorType iterator_type; | 49 IteratorType iterator_type; |
| 48 TilePriority::PriorityBin tile_type; | 50 TilePriority::PriorityBin tile_type; |
| 49 }; | 51 }; |
| 50 | 52 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 gfx::Size viewport_size_for_tile_priority_; | 222 gfx::Size viewport_size_for_tile_priority_; |
| 221 gfx::Transform screen_space_transform_for_tile_priority_; | 223 gfx::Transform screen_space_transform_for_tile_priority_; |
| 222 | 224 |
| 223 friend class PictureLayer; | 225 friend class PictureLayer; |
| 224 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 226 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 225 }; | 227 }; |
| 226 | 228 |
| 227 } // namespace cc | 229 } // namespace cc |
| 228 | 230 |
| 229 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 231 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |