diff options
author | 2016-03-22 07:23:24 -0700 | |
---|---|---|
committer | 2016-03-22 07:23:24 -0700 | |
commit | f809d7687a4fb7b88b651b046da2bc0035d6aa09 (patch) | |
tree | 38fa4182df2c735459e43b0eaaa073c1ef8c612d /tests/PaintTest.cpp | |
parent | cfcd1819d1431bbe5812c174fc337d3678d63f06 (diff) |
switch colorfilters to sk_sp
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1822623002
Review URL: https://codereview.chromium.org/1822623002
Diffstat (limited to 'tests/PaintTest.cpp')
-rw-r--r-- | tests/PaintTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp index a58bd864ec..0e92e65ba3 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()); } |