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 <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 int skewport_extrapolation_limit_in_content_pixels); | 74 int skewport_extrapolation_limit_in_content_pixels); |
75 | 75 |
76 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); | 76 void SetRasterSourceAndResize(scoped_refptr<RasterSource> raster_source); |
77 void Invalidate(const Region& layer_invalidation); | 77 void Invalidate(const Region& layer_invalidation); |
78 void CreateMissingTilesInLiveTilesRect(); | 78 void CreateMissingTilesInLiveTilesRect(); |
79 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, | 79 void TakeTilesAndPropertiesFrom(PictureLayerTiling* pending_twin, |
80 const Region& layer_invalidation); | 80 const Region& layer_invalidation); |
81 | 81 |
82 bool IsTileRequiredForActivation(const Tile* tile) const; | 82 bool IsTileRequiredForActivation(const Tile* tile) const; |
83 bool IsTileRequiredForDraw(const Tile* tile) const; | 83 bool IsTileRequiredForDraw(const Tile* tile) const; |
| 84 bool RasterSourceCoversCurrentVisibleTiles() const; |
84 | 85 |
85 void set_resolution(TileResolution resolution) { resolution_ = resolution; } | 86 void set_resolution(TileResolution resolution) { resolution_ = resolution; } |
86 TileResolution resolution() const { return resolution_; } | 87 TileResolution resolution() const { return resolution_; } |
87 void set_can_require_tiles_for_activation(bool can_require_tiles) { | 88 void set_can_require_tiles_for_activation(bool can_require_tiles) { |
88 can_require_tiles_for_activation_ = can_require_tiles; | 89 can_require_tiles_for_activation_ = can_require_tiles; |
89 } | 90 } |
90 | 91 |
91 RasterSource* raster_source() const { return raster_source_.get(); } | 92 RasterSource* raster_source() const { return raster_source_.get(); } |
92 gfx::Size tiling_size() const { return tiling_data_.tiling_size(); } | 93 gfx::Size tiling_size() const { return tiling_data_.tiling_size(); } |
93 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } | 94 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 | 363 |
363 private: | 364 private: |
364 DISALLOW_ASSIGN(PictureLayerTiling); | 365 DISALLOW_ASSIGN(PictureLayerTiling); |
365 | 366 |
366 RectExpansionCache expansion_cache_; | 367 RectExpansionCache expansion_cache_; |
367 }; | 368 }; |
368 | 369 |
369 } // namespace cc | 370 } // namespace cc |
370 | 371 |
371 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 372 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |