| 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_SET_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // TODO(danakj): Remove this !!! | 62 // TODO(danakj): Remove this !!! |
| 63 bool SyncTilingsForTesting(const PictureLayerTilingSet& other, | 63 bool SyncTilingsForTesting(const PictureLayerTilingSet& other, |
| 64 const gfx::Size& new_layer_bounds, | 64 const gfx::Size& new_layer_bounds, |
| 65 const Region& layer_invalidation, | 65 const Region& layer_invalidation, |
| 66 float minimum_contents_scale, | 66 float minimum_contents_scale, |
| 67 RasterSource* raster_source); | 67 RasterSource* raster_source); |
| 68 | 68 |
| 69 void UpdateTilingsToCurrentRasterSource( | 69 void UpdateTilingsToCurrentRasterSource( |
| 70 RasterSource* raster_source, | 70 RasterSource* raster_source, |
| 71 const PictureLayerTilingSet* twin_set, | 71 const PictureLayerTilingSet* twin_set, |
| 72 // TODO(danakj): Don't need to pass layer bounds here, we have the raster | |
| 73 // source already, and they are the same as the raster source size. | |
| 74 const gfx::Size& layer_bounds, | |
| 75 const Region& layer_invalidation, | 72 const Region& layer_invalidation, |
| 76 float minimum_contents_scale); | 73 float minimum_contents_scale); |
| 77 | 74 |
| 78 PictureLayerTiling* AddTiling(float contents_scale, | 75 PictureLayerTiling* AddTiling(float contents_scale, |
| 79 const gfx::Size& layer_bounds); | 76 const gfx::Size& layer_bounds); |
| 80 size_t num_tilings() const { return tilings_.size(); } | 77 size_t num_tilings() const { return tilings_.size(); } |
| 81 int NumHighResTilings() const; | 78 int NumHighResTilings() const; |
| 82 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } | 79 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } |
| 83 const PictureLayerTiling* tiling_at(size_t idx) const { | 80 const PictureLayerTiling* tiling_at(size_t idx) const { |
| 84 return tilings_[idx]; | 81 return tilings_[idx]; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 const int skewport_extrapolation_limit_in_content_pixels_; | 182 const int skewport_extrapolation_limit_in_content_pixels_; |
| 186 PictureLayerTilingClient* client_; | 183 PictureLayerTilingClient* client_; |
| 187 | 184 |
| 188 friend class Iterator; | 185 friend class Iterator; |
| 189 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 186 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
| 190 }; | 187 }; |
| 191 | 188 |
| 192 } // namespace cc | 189 } // namespace cc |
| 193 | 190 |
| 194 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 191 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |