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(); |