summaryrefslogtreecommitdiffstats
path: root/cc/picture_pile.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 03:29:17 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 03:29:17 +0000
commit0e630ea38167c0cafbba79e8d8043dbb3487b980 (patch)
tree5426e58c6c86a0025468e239131a50850ef43736 /cc/picture_pile.h
parent89590681f899dfe06878dcc7b87855bd9e4d6f8e (diff)
downloadchromium_src-0e630ea38167c0cafbba79e8d8043dbb3487b980.zip
chromium_src-0e630ea38167c0cafbba79e8d8043dbb3487b980.tar.gz
chromium_src-0e630ea38167c0cafbba79e8d8043dbb3487b980.tar.bz2
cc: Clean up invalidation behavior in PicturePile / PictureLayer
BUG=155209 Review URL: https://chromiumcodereview.appspot.com/11416217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169826 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/picture_pile.h')
-rw-r--r--cc/picture_pile.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/cc/picture_pile.h b/cc/picture_pile.h
index 0755d7d..8ec7093 100644
--- a/cc/picture_pile.h
+++ b/cc/picture_pile.h
@@ -22,15 +22,17 @@ public:
PicturePile();
~PicturePile();
- // Mark a portion of the PicturePile as invalid and needing to be re-recorded
- // the next time update is called.
- void Invalidate(gfx::Rect);
-
- // Resize the PicturePile, invalidating / dropping recorded pictures as necessary.
+ // Resize the PicturePile, invalidating / dropping recorded pictures as
+ // necessary.
void Resize(gfx::Size);
+ gfx::Size size() const { return size_; }
// Re-record parts of the picture that are invalid.
- void Update(ContentLayerClient* painter, RenderingStats&);
+ // Invalidations are in layer space.
+ void Update(
+ ContentLayerClient* painter,
+ const Region& invalidation,
+ RenderingStats& stats);
// Update other with a shallow copy of this (main => compositor thread commit)
void PushPropertiesTo(PicturePile& other);
@@ -44,12 +46,8 @@ public:
void Raster(SkCanvas* canvas, gfx::Rect rect);
private:
- void CopyAllButPile(const PicturePile& from, PicturePile& to) const;
-
std::vector<scoped_refptr<Picture> > pile_;
gfx::Size size_;
- Region invalidation_;
- Region prev_invalidation_;
DISALLOW_COPY_AND_ASSIGN(PicturePile);
};