| 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_PICTURE_LAYER_TILING_SET_H_ | 5 #ifndef CC_PICTURE_LAYER_TILING_SET_H_ |
| 6 #define CC_PICTURE_LAYER_TILING_SET_H_ | 6 #define CC_PICTURE_LAYER_TILING_SET_H_ |
| 7 | 7 |
| 8 #include "cc/picture_layer_tiling.h" | 8 #include "cc/picture_layer_tiling.h" |
| 9 #include "cc/region.h" | 9 #include "cc/region.h" |
| 10 #include "cc/scoped_ptr_vector.h" | 10 #include "cc/scoped_ptr_vector.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 const Region& invalidation); | 23 const Region& invalidation); |
| 24 void Clone(const PictureLayerTiling* tiling, const Region& invalidation); | 24 void Clone(const PictureLayerTiling* tiling, const Region& invalidation); |
| 25 | 25 |
| 26 void SetLayerBounds(gfx::Size layer_bounds); | 26 void SetLayerBounds(gfx::Size layer_bounds); |
| 27 gfx::Size LayerBounds() const; | 27 gfx::Size LayerBounds() const; |
| 28 | 28 |
| 29 const PictureLayerTiling* AddTiling( | 29 const PictureLayerTiling* AddTiling( |
| 30 float contents_scale, | 30 float contents_scale, |
| 31 gfx::Size tile_size); | 31 gfx::Size tile_size); |
| 32 size_t num_tilings() const { return tilings_.size(); } | 32 size_t num_tilings() const { return tilings_.size(); } |
| 33 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } |
| 33 | 34 |
| 34 void Reset(); | 35 void Reset(); |
| 35 | 36 |
| 36 void UpdateTilePriorities( | 37 void UpdateTilePriorities( |
| 37 WhichTree tree, | 38 WhichTree tree, |
| 38 const gfx::Size& device_viewport, | 39 const gfx::Size& device_viewport, |
| 39 float layer_content_scale_x, | 40 float layer_content_scale_x, |
| 40 float layer_content_scale_y, | 41 float layer_content_scale_y, |
| 41 const gfx::Transform& last_screen_transform, | 42 const gfx::Transform& last_screen_transform, |
| 42 const gfx::Transform& current_screen_transform, | 43 const gfx::Transform& current_screen_transform, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 gfx::Size layer_bounds_; | 86 gfx::Size layer_bounds_; |
| 86 ScopedPtrVector<PictureLayerTiling> tilings_; | 87 ScopedPtrVector<PictureLayerTiling> tilings_; |
| 87 Region invalidation_; | 88 Region invalidation_; |
| 88 | 89 |
| 89 friend class Iterator; | 90 friend class Iterator; |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace cc | 93 } // namespace cc |
| 93 | 94 |
| 94 #endif // CC_PICTURE_LAYER_TILING_SET_H_ | 95 #endif // CC_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |