aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PictureTest.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-03-22 07:23:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-22 07:23:24 -0700
commitf809d7687a4fb7b88b651b046da2bc0035d6aa09 (patch)
tree38fa4182df2c735459e43b0eaaa073c1ef8c612d /tests/PictureTest.cpp
parentcfcd1819d1431bbe5812c174fc337d3678d63f06 (diff)
switch colorfilters to sk_sp
Diffstat (limited to 'tests/PictureTest.cpp')
-rw-r--r--tests/PictureTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
index 58a08ecc34..a57a1b2fb2 100644
--- a/tests/PictureTest.cpp
+++ b/tests/PictureTest.cpp
@@ -278,7 +278,7 @@ static void test_savelayer_extraction(skiatest::Reporter* reporter) {
// optimize away
SkScalar blueToRedMatrix[20] = { 0 };
blueToRedMatrix[2] = blueToRedMatrix[18] = SK_Scalar1;
- SkAutoTUnref<SkColorFilter> blueToRed(SkColorMatrixFilter::Create(blueToRedMatrix));
+ auto blueToRed(SkColorFilter::MakeMatrixFilterRowMajor255(blueToRedMatrix));
SkAutoTUnref<SkImageFilter> filter(SkColorFilterImageFilter::Create(blueToRed.get()));
SkPaint complexPaint;