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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.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/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);

Powered by Google App Engine
This is Rietveld 408576698