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

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

Issue 2625403002: Prefer newly added SkPaint::refFoo() over getFoo() (Closed)
Patch Set: Created 3 years, 11 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/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 521f6f186aa2f3c26ad9361236fe753a0480e1ed..426c5b1ea4c50e4a36fe04303ba98c22c9c80cd3 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
@@ -1063,7 +1063,7 @@ void BaseRenderingContext2D::drawImageInternal(SkCanvas* c,
ctm.mapRect(&bounds);
SkPaint layerPaint;
layerPaint.setBlendMode(paint->getBlendMode());
- layerPaint.setImageFilter(sk_ref_sp(paint->getImageFilter()));
+ layerPaint.setImageFilter(paint->refImageFilter());
c->saveLayer(&bounds, &layerPaint);
c->concat(ctm);

Powered by Google App Engine
This is Rietveld 408576698