Index: gm/colormatrix.cpp |
diff --git a/gm/colormatrix.cpp b/gm/colormatrix.cpp |
index de80ebb64b3b8cc9ffe43cbffe42ebc3affe1a95..8ac15dba8ea9073072232de6a3d6f940ae23bb0b 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(SkColorMatrixFilter::Create(matrix))->unref(); |
+ paint->setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix.fMat)); |
} |
static void set_array(SkPaint* paint, const SkScalar array[]) { |
- paint->setColorFilter(SkColorMatrixFilter::Create(array))->unref(); |
+ paint->setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(array)); |
} |
class ColorMatrixGM : public skiagm::GM { |