| 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 <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 gfx::Rect ExpandRectEquallyToAreaBoundedBy( | 275 gfx::Rect ExpandRectEquallyToAreaBoundedBy( |
| 276 const gfx::Rect& starting_rect, | 276 const gfx::Rect& starting_rect, |
| 277 int64 target_area, | 277 int64 target_area, |
| 278 const gfx::Rect& bounding_rect, | 278 const gfx::Rect& bounding_rect, |
| 279 RectExpansionCache* cache); | 279 RectExpansionCache* cache); |
| 280 | 280 |
| 281 bool has_ever_been_updated() const { | 281 bool has_ever_been_updated() const { |
| 282 return last_impl_frame_time_in_seconds_ != 0.0; | 282 return last_impl_frame_time_in_seconds_ != 0.0; |
| 283 } | 283 } |
| 284 | 284 |
| 285 int tiles_size() const; |
| 286 |
| 285 protected: | 287 protected: |
| 286 friend class CoverageIterator; | 288 friend class CoverageIterator; |
| 287 friend class TilingRasterTileIterator; | 289 friend class TilingRasterTileIterator; |
| 288 friend class TilingEvictionTileIterator; | 290 friend class TilingEvictionTileIterator; |
| 289 | 291 |
| 290 typedef std::pair<int, int> TileMapKey; | 292 typedef std::pair<int, int> TileMapKey; |
| 291 typedef base::hash_map<TileMapKey, scoped_refptr<Tile> > TileMap; | 293 typedef base::hash_map<TileMapKey, scoped_refptr<Tile> > TileMap; |
| 292 | 294 |
| 293 PictureLayerTiling(float contents_scale, | 295 PictureLayerTiling(float contents_scale, |
| 294 const gfx::Size& layer_bounds, | 296 const gfx::Size& layer_bounds, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 356 |
| 355 private: | 357 private: |
| 356 DISALLOW_ASSIGN(PictureLayerTiling); | 358 DISALLOW_ASSIGN(PictureLayerTiling); |
| 357 | 359 |
| 358 RectExpansionCache expansion_cache_; | 360 RectExpansionCache expansion_cache_; |
| 359 }; | 361 }; |
| 360 | 362 |
| 361 } // namespace cc | 363 } // namespace cc |
| 362 | 364 |
| 363 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 365 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |