Index: cc/picture_layer_impl.h |
diff --git a/cc/picture_layer_impl.h b/cc/picture_layer_impl.h |
index e2c7675bdf7e5593e1dfada4958428ec631a3f15..76b71b132a04b4e10f521a18c65c56deb510ec52 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 { |
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*, |
+ 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; |