| 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_TILES_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_H_ |
| 6 #define CC_TILES_PICTURE_LAYER_TILING_H_ | 6 #define CC_TILES_PICTURE_LAYER_TILING_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 int skewport_extrapolation_limit_in_content_pixels); | 103 int skewport_extrapolation_limit_in_content_pixels); |
| 104 | 104 |
| 105 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); | 105 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); |
| 106 void Invalidate(const Region& layer_invalidation); | 106 void Invalidate(const Region& layer_invalidation); |
| 107 void CreateMissingTilesInLiveTilesRect(); | 107 void CreateMissingTilesInLiveTilesRect(); |
| 108 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, | 108 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, |
| 109 const Region& layer_invalidation); | 109 const Region& layer_invalidation); |
| 110 | 110 |
| 111 bool IsTileRequiredForActivation(const Tile* tile) const; | 111 bool IsTileRequiredForActivation(const Tile* tile) const; |
| 112 bool IsTileRequiredForDraw(const Tile* tile) const; | 112 bool IsTileRequiredForDraw(const Tile* tile) const; |
| 113 bool RasterSourceCoversCurrentVisibleTiles() const; |
| 113 | 114 |
| 114 void set_resolution(TileResolution resolution) { resolution_ = resolution; } | 115 void set_resolution(TileResolution resolution) { resolution_ = resolution; } |
| 115 TileResolution resolution() const { return resolution_; } | 116 TileResolution resolution() const { return resolution_; } |
| 116 void set_can_require_tiles_for_activation(bool can_require_tiles) { | 117 void set_can_require_tiles_for_activation(bool can_require_tiles) { |
| 117 can_require_tiles_for_activation_ = can_require_tiles; | 118 can_require_tiles_for_activation_ = can_require_tiles; |
| 118 } | 119 } |
| 119 | 120 |
| 120 RasterSource* raster_source() const { return raster_source_.get(); } | 121 RasterSource* raster_source() const { return raster_source_.get(); } |
| 121 gfx::Size tiling_size() const { return tiling_data_.tiling_size(); } | 122 gfx::Size tiling_size() const { return tiling_data_.tiling_size(); } |
| 122 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } | 123 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 397 |
| 397 private: | 398 private: |
| 398 DISALLOW_ASSIGN(PictureLayerTiling); | 399 DISALLOW_ASSIGN(PictureLayerTiling); |
| 399 | 400 |
| 400 RectExpansionCache expansion_cache_; | 401 RectExpansionCache expansion_cache_; |
| 401 }; | 402 }; |
| 402 | 403 |
| 403 } // namespace cc | 404 } // namespace cc |
| 404 | 405 |
| 405 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ | 406 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |