Index: gm/colormatrix.cpp |
diff --git a/gm/colormatrix.cpp b/gm/colormatrix.cpp |
index 8ac15dba8ea9073072232de6a3d6f940ae23bb0b..de80ebb64b3b8cc9ffe43cbffe42ebc3affe1a95 100644 |
--- a/gm/colormatrix.cpp |
+++ b/gm/colormatrix.cpp |
@@ -14,11 +14,11 @@ |
#define HEIGHT 500 |
static void set_color_matrix(SkPaint* paint, const SkColorMatrix& matrix) { |
- paint->setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix.fMat)); |
+ paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref(); |
} |
static void set_array(SkPaint* paint, const SkScalar array[]) { |
- paint->setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(array)); |
+ paint->setColorFilter(SkColorMatrixFilter::Create(array))->unref(); |
} |
class ColorMatrixGM : public skiagm::GM { |