aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/colormatrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/colormatrix.cpp')
-rw-r--r--gm/colormatrix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/colormatrix.cpp b/gm/colormatrix.cpp
index 8ac15dba8e..de80ebb64b 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 {