| 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 "cc/base/region.h" | 8 #include "cc/base/region.h" |
| 9 #include "cc/base/scoped_ptr_vector.h" | 9 #include "cc/base/scoped_ptr_vector.h" |
| 10 #include "cc/resources/picture_layer_tiling.h" | 10 #include "cc/resources/picture_layer_tiling.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 void CloneAll( | 23 void CloneAll( |
| 24 const PictureLayerTilingSet& other, | 24 const PictureLayerTilingSet& other, |
| 25 const Region& invalidation, | 25 const Region& invalidation, |
| 26 float minimum_contents_scale); | 26 float minimum_contents_scale); |
| 27 void Clone(const PictureLayerTiling* tiling, const Region& invalidation); | 27 void Clone(const PictureLayerTiling* tiling, const Region& invalidation); |
| 28 | 28 |
| 29 void SetLayerBounds(gfx::Size layer_bounds); | 29 void SetLayerBounds(gfx::Size layer_bounds); |
| 30 gfx::Size LayerBounds() const; | 30 gfx::Size LayerBounds() const; |
| 31 | 31 |
| 32 void Invalidate(const Region& layer_invalidation); | 32 void Invalidate(const Region& layer_invalidation); |
| 33 void InvalidateTilesWithText(); |
| 33 | 34 |
| 34 PictureLayerTiling* AddTiling(float contents_scale); | 35 PictureLayerTiling* AddTiling(float contents_scale); |
| 35 size_t num_tilings() const { return tilings_.size(); } | 36 size_t num_tilings() const { return tilings_.size(); } |
| 36 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } | 37 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } |
| 37 const PictureLayerTiling* tiling_at(size_t idx) const { | 38 const PictureLayerTiling* tiling_at(size_t idx) const { |
| 38 return tilings_[idx]; | 39 return tilings_[idx]; |
| 39 } | 40 } |
| 40 | 41 |
| 41 // Remove all tilings. | 42 // Remove all tilings. |
| 42 void RemoveAllTilings(); | 43 void RemoveAllTilings(); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 gfx::Size layer_bounds_; | 119 gfx::Size layer_bounds_; |
| 119 ScopedPtrVector<PictureLayerTiling> tilings_; | 120 ScopedPtrVector<PictureLayerTiling> tilings_; |
| 120 | 121 |
| 121 friend class Iterator; | 122 friend class Iterator; |
| 122 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 123 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace cc | 126 } // namespace cc |
| 126 | 127 |
| 127 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 128 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |