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

Unified Diff: samplecode/SamplePatch.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 | « include/core/SkShader.h ('k') | src/core/SkLocalMatrixShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SamplePatch.cpp
diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp
index dc3e9df086a4c202e01b1861237eaa8191e1a028..92bb17cd062870dead3d818490e6d8855534ab91 100644
--- a/samplecode/SamplePatch.cpp
+++ b/samplecode/SamplePatch.cpp
@@ -306,13 +306,13 @@ protected:
if (true) {
SkMatrix m;
m.setSkew(1, 0);
- SkShader* s = SkShader::CreateLocalMatrixShader(paint.getShader(), m);
+ SkShader* s = paint.getShader()->newWithLocalMatrix(m);
paint.setShader(s)->unref();
}
if (true) {
SkMatrix m;
m.setRotate(fAngle);
- SkShader* s = SkShader::CreateLocalMatrixShader(paint.getShader(), m);
+ SkShader* s = paint.getShader()->newWithLocalMatrix(m);
paint.setShader(s)->unref();
}
patch.setBounds(fSize1.fX, fSize1.fY);
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkLocalMatrixShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698