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

Unified Diff: cc/resources/tile.h

Issue 375923005: cc: Explicitly invalidate all dropped recordings on the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invalid-resize: doublecall Created 6 years, 5 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/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index 29acf80a1e35d116e309dde63d4a9f3c8d5aa1a3..65761432ac4e2c2b28eed8d73b89dad5f3cc7890 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -109,7 +109,9 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
int source_frame_number() const { return source_frame_number_; }
void set_picture_pile(scoped_refptr<PicturePileImpl> pile) {
- DCHECK(pile->CanRaster(contents_scale_, content_rect_));
+ DCHECK(pile->CanRaster(contents_scale_, content_rect_))
+ << gfx::ScaleToEnclosingRect(content_rect_, 1.f / contents_scale_)
+ .ToString();
picture_pile_ = pile;
}

Powered by Google App Engine
This is Rietveld 408576698