Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp |
index ed269d7ac3202520c7ac695c65d485bb76214a29..dc6968fe6d8bc2a92a90b83186409d4caf1e9749 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp |
@@ -543,7 +543,7 @@ const SkPaint* CanvasRenderingContext2DState::getPaint( |
if (shadowMode == DrawShadowOnly) { |
if (imageType == NonOpaqueImage || m_filterValue) { |
paint->setLooper(0); |
- paint->setImageFilter(shadowOnlyImageFilter()); |
+ paint->setImageFilter(sk_ref_sp(shadowOnlyImageFilter())); |
return paint; |
} |
paint->setLooper(sk_ref_sp(shadowOnlyDrawLooper())); |
@@ -554,7 +554,7 @@ const SkPaint* CanvasRenderingContext2DState::getPaint( |
ASSERT(shadowMode == DrawShadowAndForeground); |
if (imageType == NonOpaqueImage) { |
paint->setLooper(0); |
- paint->setImageFilter(shadowAndForegroundImageFilter()); |
+ paint->setImageFilter(sk_ref_sp(shadowAndForegroundImageFilter())); |
return paint; |
} |
paint->setLooper(sk_ref_sp(shadowAndForegroundDrawLooper())); |