Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3773)

Unified Diff: cc/picture_layer_impl.h

Issue 11377176: cc: Add PictureLayerTiling for impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « cc/picture_layer.cc ('k') | cc/picture_layer_impl.cc » ('j') | cc/picture_layer_tiling.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698