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

Unified Diff: third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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: third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
index b6f9bf6733ec9cd4e7315514b686268c3a29ef6d..f89ba9356f9f5129d23fd580a4d64911c4f753ec 100644
--- a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
@@ -23,7 +23,7 @@ void PaintGeneratedImage::Draw(PaintCanvas* canvas,
canvas->scale(dest_rect.Width() / src_rect.Width(),
dest_rect.Height() / src_rect.Height());
canvas->translate(-src_rect.X(), -src_rect.Y());
- SkRect bounds = record_->cullRect();
+ SkRect bounds = dest_rect;
canvas->saveLayer(&bounds, &flags);
canvas->drawPicture(record_);
}

Powered by Google App Engine
This is Rietveld 408576698