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

Unified Diff: cc/picture_pile_impl.cc

Issue 11882037: Activate LayerImpl tree with sync+push instead of pointer swap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months 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_pile_impl.cc
diff --git a/cc/picture_pile_impl.cc b/cc/picture_pile_impl.cc
index 4155664f79ad3396e2938ac5472527446ee930d4..9ec857f8293cee1d889430ecae19544755a871cd 100644
--- a/cc/picture_pile_impl.cc
+++ b/cc/picture_pile_impl.cc
@@ -99,6 +99,12 @@ void PicturePileImpl::GatherPixelRefs(
}
}
+void PicturePileImpl::PushPropertiesTo(PicturePileImpl* other) {
enne (OOO) 2013/01/17 23:34:55 You should just call PicturePileBase::PushProperti
jamesr 2013/01/18 01:16:42 Ah, missed that there was a base class. Done
+ other->pile_ = pile_;
+ other->clones_ = clones_;
+ other->min_contents_scale_ = min_contents_scale_;
+}
+
skia::RefPtr<SkPicture> PicturePileImpl::GetFlattenedPicture() {
TRACE_EVENT0("cc", "PicturePileImpl::GetFlattenedPicture");

Powered by Google App Engine
This is Rietveld 408576698