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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.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/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index 174f1ac6db7344d18dc81054838dee7c43d82586..9b76631467cb4ee178f708f73f19557449c3a89b 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -298,7 +298,7 @@ sk_sp<PaintRecord> GraphicsContext::EndRecording() {
}
void GraphicsContext::DrawRecord(sk_sp<const PaintRecord> record) {
- if (ContextDisabled() || !record || record->cullRect().isEmpty())
+ if (ContextDisabled() || !record || !record->size())
return;
DCHECK(canvas_);
@@ -322,7 +322,7 @@ void GraphicsContext::CompositeRecord(sk_sp<PaintRecord> record,
transform.setRectToRect(source_bounds, sk_bounds, SkMatrix::kFill_ScaleToFit);
canvas_->concat(transform);
flags.setImageFilter(SkPictureImageFilter::MakeForLocalSpace(
- ToSkPicture(record), source_bounds,
+ ToSkPicture(record, source_bounds), source_bounds,
static_cast<SkFilterQuality>(ImageInterpolationQuality())));
canvas_->saveLayer(&source_bounds, &flags);
canvas_->restore();

Powered by Google App Engine
This is Rietveld 408576698