Index: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp |
index 4f2b077e0542c5c28440dfc545f6c4c38f61770a..bf5578f39469668274144645657a24c1a5fe0b0e 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp |
@@ -1033,7 +1033,7 @@ void BaseRenderingContext2D::drawImageInternal(SkCanvas* c, |
ctm.mapRect(&bounds); |
SkPaint layerPaint; |
layerPaint.setBlendMode(paint->getBlendMode()); |
- layerPaint.setImageFilter(paint->getImageFilter()); |
+ layerPaint.setImageFilter(sk_ref_sp(paint->getImageFilter())); |
c->saveLayer(&bounds, &layerPaint); |
c->concat(ctm); |