| 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_SET_H_ | 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_SET_H_ |
| 6 #define CC_TILES_PICTURE_LAYER_TILING_SET_H_ | 6 #define CC_TILES_PICTURE_LAYER_TILING_SET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 float minimum_contents_scale, | 73 float minimum_contents_scale, |
| 74 float maximum_contents_scale); | 74 float maximum_contents_scale); |
| 75 | 75 |
| 76 // This function is called on the sync tree right after commit. | 76 // This function is called on the sync tree right after commit. |
| 77 void UpdateRasterSourceDueToLCDChange( | 77 void UpdateRasterSourceDueToLCDChange( |
| 78 scoped_refptr<RasterSource> raster_source, | 78 scoped_refptr<RasterSource> raster_source, |
| 79 const Region& layer_invalidation); | 79 const Region& layer_invalidation); |
| 80 | 80 |
| 81 void UpdateTilingsForImplSideInvalidation(const Region& layer_invalidation); | 81 void UpdateTilingsForImplSideInvalidation(const Region& layer_invalidation); |
| 82 | 82 |
| 83 PictureLayerTiling* AddTiling(float contents_scale, | 83 PictureLayerTiling* AddTiling(const gfx::AxisTransform2d& raster_transform, |
| 84 scoped_refptr<RasterSource> raster_source); | 84 scoped_refptr<RasterSource> raster_source); |
| 85 size_t num_tilings() const { return tilings_.size(); } | 85 size_t num_tilings() const { return tilings_.size(); } |
| 86 int NumHighResTilings() const; | 86 int NumHighResTilings() const; |
| 87 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx].get(); } | 87 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx].get(); } |
| 88 const PictureLayerTiling* tiling_at(size_t idx) const { | 88 const PictureLayerTiling* tiling_at(size_t idx) const { |
| 89 return tilings_[idx].get(); | 89 return tilings_[idx].get(); |
| 90 } | 90 } |
| 91 WhichTree tree() const { return tree_; } | 91 WhichTree tree() const { return tree_; } |
| 92 | 92 |
| 93 PictureLayerTiling* FindTilingWithScaleKey(float scale_key) const; | 93 PictureLayerTiling* FindTilingWithScaleKey(float scale_key) const; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 friend class Iterator; | 264 friend class Iterator; |
| 265 | 265 |
| 266 private: | 266 private: |
| 267 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 267 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 } // namespace cc | 270 } // namespace cc |
| 271 | 271 |
| 272 #endif // CC_TILES_PICTURE_LAYER_TILING_SET_H_ | 272 #endif // CC_TILES_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |