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_IMPL_H_ | 5 #ifndef CC_PICTURE_LAYER_IMPL_H_ |
6 #define CC_PICTURE_LAYER_IMPL_H_ | 6 #define CC_PICTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include "cc/layer_impl.h" | 8 #include "cc/layer_impl.h" |
9 #include "cc/picture_layer_tiling.h" | 9 #include "cc/picture_layer_tiling.h" |
| 10 #include "cc/picture_layer_tiling_set.h" |
10 #include "cc/picture_pile.h" | 11 #include "cc/picture_pile.h" |
11 #include "cc/scoped_ptr_vector.h" | 12 #include "cc/scoped_ptr_vector.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 | 15 |
15 struct AppendQuadsData; | 16 struct AppendQuadsData; |
16 class QuadSink; | 17 class QuadSink; |
17 | 18 |
18 class CC_EXPORT PictureLayerImpl : public LayerImpl, | 19 class CC_EXPORT PictureLayerImpl : public LayerImpl, |
19 public PictureLayerTilingClient { | 20 public PictureLayerTilingClient { |
(...skipping 15 matching lines...) Expand all Loading... |
35 | 36 |
36 // PushPropertiesTo active tree => pending tree | 37 // PushPropertiesTo active tree => pending tree |
37 void SyncFromActiveLayer(const PictureLayerImpl* other); | 38 void SyncFromActiveLayer(const PictureLayerImpl* other); |
38 | 39 |
39 // Called post-calcDraw. | 40 // Called post-calcDraw. |
40 void Update(); | 41 void Update(); |
41 | 42 |
42 protected: | 43 protected: |
43 PictureLayerImpl(int id); | 44 PictureLayerImpl(int id); |
44 | 45 |
45 ScopedPtrVector<PictureLayerTiling> tilings_; | 46 PictureLayerTilingSet tilings_; |
46 PicturePile pile_; | 47 PicturePile pile_; |
47 | 48 |
48 friend class PictureLayer; | 49 friend class PictureLayer; |
49 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 50 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
50 }; | 51 }; |
51 | 52 |
52 } | 53 } |
53 | 54 |
54 #endif // CC_PICTURE_LAYER_IMPL_H_ | 55 #endif // CC_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |