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 { |