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

Unified Diff: gm/perlinnoise.cpp

Issue 1553743002: change factory to method, to parallel pattern in imagefilters (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 | « no previous file | 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 e4c559801bf18716f2d57f2cb6bfdb19b5fe4f63..7e6f70e5de41520c4dbd1aa6126ad389fb67eb09 100644
--- a/gm/perlinnoise.cpp
+++ b/gm/perlinnoise.cpp
@@ -154,7 +154,7 @@ protected:
SkMatrix lm;
lm.setScale(2, 2);
- paint.setShader(SkShader::CreateLocalMatrixShader(paint.getShader(), lm))->unref();
+ paint.setShader(paint.getShader()->newWithLocalMatrix(lm))->unref();
r.fRight += r.width();
r.fBottom += r.height();
« no previous file with comments | « no previous file | include/core/SkShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698