Chromium Code Reviews| Index: cc/picture_layer_impl.h |
| diff --git a/cc/picture_layer_impl.h b/cc/picture_layer_impl.h |
| index e2c7675bdf7e5593e1dfada4958428ec631a3f15..d170816ed5dddef86e4eeeeb42daa6b9186cb17d 100644 |
| --- a/cc/picture_layer_impl.h |
| +++ b/cc/picture_layer_impl.h |
| @@ -6,14 +6,17 @@ |
| #define CC_PICTURE_LAYER_IMPL_H_ |
| #include "cc/layer_impl.h" |
| +#include "cc/picture_layer_tiling.h" |
| #include "cc/picture_pile.h" |
| +#include "cc/scoped_ptr_vector.h" |
| namespace cc { |
| struct AppendQuadsData; |
| class QuadSink; |
| -class CC_EXPORT PictureLayerImpl : public LayerImpl { |
| +class CC_EXPORT PictureLayerImpl : public LayerImpl, |
| + public PictureLayerTilingClient { |
|
tfarina
2012/11/15 01:54:04
nit: no, no no :)
class FOO_EXPORT Foo : public B
|
| public: |
| static scoped_ptr<PictureLayerImpl> create(int id) |
| { |
| @@ -26,9 +29,20 @@ public: |
| virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; |
| virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; |
| + // PictureLayerTilingClient overrides. |
| + virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, |
|
tfarina
2012/11/15 01:54:04
you could have made this private instead.
|
| + gfx::Rect) OVERRIDE; |
| + |
| + // PushPropertiesTo active tree => pending tree |
| + void SyncFromActiveLayer(const PictureLayerImpl* other); |
| + |
| + // Called post-calcDraw. |
| + void Update(); |
| + |
| protected: |
| PictureLayerImpl(int id); |
| + ScopedPtrVector<PictureLayerTiling> tilings_; |
| PicturePile pile_; |
| friend class PictureLayer; |