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

Unified Diff: gm/colormatrix.cpp

Issue 175293002: Factory methods for heap-allocated SkColorFilter objects. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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') | gm/imagefiltersgraph.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/colormatrix.cpp
diff --git a/gm/colormatrix.cpp b/gm/colormatrix.cpp
index e0dcfaf72ef74d20d7e6b23628f97211bf66371c..862bdf9d513d2241ba2eb9beb77f47fda372f2d1 100644
--- a/gm/colormatrix.cpp
+++ b/gm/colormatrix.cpp
@@ -29,11 +29,11 @@ private:
};
static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) {
- paint->setColorFilter(SkNEW_ARGS(SkColorMatrixFilter, (matrix)))->unref();
+ paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref();
}
static void setArray(SkPaint* paint, const SkScalar array[]) {
- paint->setColorFilter(SkNEW_ARGS(SkColorMatrixFilter, (array)))->unref();
+ paint->setColorFilter(SkColorMatrixFilter::Create(array))->unref();
}
namespace skiagm {
« no previous file with comments | « gm/colorfilterimagefilter.cpp ('k') | gm/imagefiltersgraph.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698