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

Unified Diff: gm/perlinnoise.cpp

Issue 1782703002: sk_sp versions of newWithColorFilter and newWithLocalMatrix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « gm/colorfilterimagefilter.cpp ('k') | include/core/SkShader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/perlinnoise.cpp
diff --git a/gm/perlinnoise.cpp b/gm/perlinnoise.cpp
index 7e6f70e5de41520c4dbd1aa6126ad389fb67eb09..92f0f963c3ee70bcb4b0efe53b713237cd10974d 100644
--- a/gm/perlinnoise.cpp
+++ b/gm/perlinnoise.cpp
@@ -154,7 +154,7 @@ protected:
SkMatrix lm;
lm.setScale(2, 2);
- paint.setShader(paint.getShader()->newWithLocalMatrix(lm))->unref();
+ paint.setShader(paint.getShader()->makeWithLocalMatrix(lm));
r.fRight += r.width();
r.fBottom += r.height();
« no previous file with comments | « gm/colorfilterimagefilter.cpp ('k') | include/core/SkShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698