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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp

Issue 2472543002: remove legacy Skia flags (Closed)
Patch Set: Created 4 years, 1 month 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/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()));

Powered by Google App Engine
This is Rietveld 408576698