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_RESOURCES_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 int64 target_area, | 226 int64 target_area, |
227 const gfx::Rect& bounding_rect, | 227 const gfx::Rect& bounding_rect, |
228 RectExpansionCache* cache); | 228 RectExpansionCache* cache); |
229 | 229 |
230 bool has_ever_been_updated() const { | 230 bool has_ever_been_updated() const { |
231 return last_impl_frame_time_in_seconds_ != 0.0; | 231 return last_impl_frame_time_in_seconds_ != 0.0; |
232 } | 232 } |
233 | 233 |
234 protected: | 234 protected: |
235 friend class CoverageIterator; | 235 friend class CoverageIterator; |
236 friend class TilingSetRasterQueue; | 236 friend class TilingSetRasterQueueAll; |
| 237 friend class TilingSetRasterQueueRequired; |
237 friend class TilingSetEvictionQueue; | 238 friend class TilingSetEvictionQueue; |
238 | 239 |
239 typedef std::pair<int, int> TileMapKey; | 240 typedef std::pair<int, int> TileMapKey; |
240 typedef base::hash_map<TileMapKey, scoped_refptr<Tile>> TileMap; | 241 typedef base::hash_map<TileMapKey, scoped_refptr<Tile>> TileMap; |
241 | 242 |
242 PictureLayerTiling(float contents_scale, | 243 PictureLayerTiling(float contents_scale, |
243 scoped_refptr<RasterSource> raster_source, | 244 scoped_refptr<RasterSource> raster_source, |
244 PictureLayerTilingClient* client, | 245 PictureLayerTilingClient* client, |
245 size_t max_tiles_for_interest_area, | 246 size_t max_tiles_for_interest_area, |
246 float skewport_target_time_in_seconds, | 247 float skewport_target_time_in_seconds, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 317 |
317 private: | 318 private: |
318 DISALLOW_ASSIGN(PictureLayerTiling); | 319 DISALLOW_ASSIGN(PictureLayerTiling); |
319 | 320 |
320 RectExpansionCache expansion_cache_; | 321 RectExpansionCache expansion_cache_; |
321 }; | 322 }; |
322 | 323 |
323 } // namespace cc | 324 } // namespace cc |
324 | 325 |
325 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 326 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |