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

Unified Diff: cc/picture_pile_impl.cc

Issue 11731002: Implement a method to access the non-composited content root layer picture pile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resubmitting, empty files in the review. Created 7 years, 12 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 05f9584ae58bb1f82306f7d244053b42a32909d1..f207256a302b916c36b92ff45bf754ca7389fc6c 100644
--- a/cc/picture_pile_impl.cc
+++ b/cc/picture_pile_impl.cc
@@ -89,4 +89,13 @@ void PicturePileImpl::GatherPixelRefs(
}
}
+gfx::Rect PicturePileImpl::LayerRect() const {
+ gfx::Rect layer_rect;
+ for (PicturePile::Pile::const_iterator i = pile_.begin();
+ i != pile_.end(); ++i) {
+ layer_rect.Union((*i)->LayerRect());
+ }
+ return layer_rect;
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698