Index: tests/PaintTest.cpp |
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp |
index a58bd864ece75c165d8fe0ff58b3cdcc08d14a68..0e92e65ba3ec500a16e4907cbfd2ccba88dad4cb 100644 |
--- a/tests/PaintTest.cpp |
+++ b/tests/PaintTest.cpp |
@@ -360,11 +360,11 @@ DEF_TEST(Paint_nothingToDraw, r) { |
SkColorMatrix cm; |
cm.setIdentity(); // does not change alpha |
- paint.setColorFilter(SkColorMatrixFilter::Create(cm))->unref(); |
+ paint.setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat)); |
REPORTER_ASSERT(r, paint.nothingToDraw()); |
cm.postTranslate(0, 0, 0, 1); // wacks alpha |
- paint.setColorFilter(SkColorMatrixFilter::Create(cm))->unref(); |
+ paint.setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat)); |
REPORTER_ASSERT(r, !paint.nothingToDraw()); |
} |