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

Unified Diff: cc/resources/picture_pile.cc

Issue 235753002: cc: Give TilingData a Rect instead of a Size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/resources/picture_pile.cc
diff --git a/cc/resources/picture_pile.cc b/cc/resources/picture_pile.cc
index 1af8b4ce05a9df51aaf5b6a4ea7da0cb658e9828..7f1f46a80b68548d7aab6507441c2fd74ad1c4b2 100644
--- a/cc/resources/picture_pile.cc
+++ b/cc/resources/picture_pile.cc
@@ -166,7 +166,7 @@ bool PicturePile::Update(ContentLayerClient* painter,
-kPixelDistanceToRecord,
-kPixelDistanceToRecord);
recorded_viewport_ = interest_rect;
- recorded_viewport_.Intersect(gfx::Rect(size()));
+ recorded_viewport_.Intersect(tiling_rect());
bool invalidated = false;
for (Region::Iterator i(invalidation); i.has_rect(); i.next()) {

Powered by Google App Engine
This is Rietveld 408576698