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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 RectExpansionCache* cache); | 293 RectExpansionCache* cache); |
294 | 294 |
295 bool has_ever_been_updated() const { | 295 bool has_ever_been_updated() const { |
296 return last_impl_frame_time_in_seconds_ != 0.0; | 296 return last_impl_frame_time_in_seconds_ != 0.0; |
297 } | 297 } |
298 | 298 |
299 protected: | 299 protected: |
300 friend class CoverageIterator; | 300 friend class CoverageIterator; |
301 friend class TilingRasterTileIterator; | 301 friend class TilingRasterTileIterator; |
302 friend class TilingEvictionTileIterator; | 302 friend class TilingEvictionTileIterator; |
| 303 friend class TilingSetEvictionQueue; |
303 | 304 |
304 typedef std::pair<int, int> TileMapKey; | 305 typedef std::pair<int, int> TileMapKey; |
305 typedef base::hash_map<TileMapKey, scoped_refptr<Tile>> TileMap; | 306 typedef base::hash_map<TileMapKey, scoped_refptr<Tile>> TileMap; |
306 | 307 |
307 PictureLayerTiling(float contents_scale, | 308 PictureLayerTiling(float contents_scale, |
308 const gfx::Size& layer_bounds, | 309 const gfx::Size& layer_bounds, |
309 PictureLayerTilingClient* client); | 310 PictureLayerTilingClient* client); |
310 void SetLiveTilesRect(const gfx::Rect& live_tiles_rect); | 311 void SetLiveTilesRect(const gfx::Rect& live_tiles_rect); |
311 void VerifyLiveTilesRect(); | 312 void VerifyLiveTilesRect(); |
312 Tile* CreateTile(int i, int j, const PictureLayerTiling* twin_tiling); | 313 Tile* CreateTile(int i, int j, const PictureLayerTiling* twin_tiling); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 | 381 |
381 private: | 382 private: |
382 DISALLOW_ASSIGN(PictureLayerTiling); | 383 DISALLOW_ASSIGN(PictureLayerTiling); |
383 | 384 |
384 RectExpansionCache expansion_cache_; | 385 RectExpansionCache expansion_cache_; |
385 }; | 386 }; |
386 | 387 |
387 } // namespace cc | 388 } // namespace cc |
388 | 389 |
389 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 390 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |