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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp

Issue 2791043002: Draw recorded content directly into the containing PaintCanvas, when possible. (Closed)
Patch Set: none Created 3 years, 9 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/core/svg/graphics/filters/SVGFEImage.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
index 4b65712ce98b795dc8f5b78d86c3b765e9f7b462..98bf19368a0e9893a162eb78b1648c4012b09119 100644
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
@@ -186,7 +186,8 @@ sk_sp<SkImageFilter> FEImage::createImageFilterForLayoutObject(
PaintRecorder paintRecorder;
PaintCanvas* canvas = paintRecorder.beginRecording(dstRect);
canvas->concat(affineTransformToSkMatrix(transform));
- canvas->drawPicture(builder.endRecording());
+ builder.endRecording(*canvas);
+
return SkPictureImageFilter::Make(
ToSkPicture(paintRecorder.finishRecordingAsPicture()), dstRect);
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp ('k') | third_party/WebKit/Source/platform/exported/WebFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698