| 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" |
| 11 #include "ui/gfx/size.h" | 11 #include "ui/gfx/size.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 | 14 |
| 15 class CC_EXPORT PictureLayerTilingSet { | 15 class CC_EXPORT PictureLayerTilingSet { |
| 16 public: | 16 public: |
| 17 PictureLayerTilingSet(PictureLayerTilingClient* client); | 17 explicit PictureLayerTilingSet(PictureLayerTilingClient* client); |
| 18 ~PictureLayerTilingSet(); | 18 ~PictureLayerTilingSet(); |
| 19 | 19 |
| 20 // Shallow copies all data (except client and bounds from other). | 20 // Shallow copies all data (except client and bounds from other). |
| 21 void CloneAll( | 21 void CloneAll( |
| 22 const PictureLayerTilingSet& other, | 22 const PictureLayerTilingSet& other, |
| 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; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 gfx::Size layer_bounds_; | 85 gfx::Size layer_bounds_; |
| 86 ScopedPtrVector<PictureLayerTiling> tilings_; | 86 ScopedPtrVector<PictureLayerTiling> tilings_; |
| 87 Region invalidation_; | 87 Region invalidation_; |
| 88 | 88 |
| 89 friend class Iterator; | 89 friend class Iterator; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace cc | 92 } // namespace cc |
| 93 | 93 |
| 94 #endif // CC_PICTURE_LAYER_TILING_SET_H_ | 94 #endif // CC_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |