diff options
author | robertphillips <robertphillips@google.com> | 2016-04-08 16:28:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-08 16:28:09 -0700 |
commit | 12fa47d33f1e9eb69bb20d9daad2eccfc7288944 (patch) | |
tree | 3a691901d49bc1e7ce0a0200090052e9093addf4 /gm/imagefilterscropexpand.cpp | |
parent | 601e36a5c5858d1940a8c381f832e2867acbfb8e (diff) |
Update LightingImageFilter to sk_sp
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869763002
Review URL: https://codereview.chromium.org/1869763002
Diffstat (limited to 'gm/imagefilterscropexpand.cpp')
-rw-r--r-- | gm/imagefilterscropexpand.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gm/imagefilterscropexpand.cpp b/gm/imagefilterscropexpand.cpp index 6f749dc7e5..3d5fcf3612 100644 --- a/gm/imagefilterscropexpand.cpp +++ b/gm/imagefilterscropexpand.cpp @@ -55,7 +55,7 @@ protected: 0, 1, 0, 0, sk255, 0, 0, 1, 0, 0, 0, 0, 0, 0, sk255 }; - auto cfAlphaTrans(SkColorFilter::MakeMatrixFilterRowMajor255(matrix)); + sk_sp<SkColorFilter> cfAlphaTrans(SkColorFilter::MakeMatrixFilterRowMajor255(matrix)); SkRect r = SkRect::MakeWH(SkIntToScalar(64), SkIntToScalar(64)); SkScalar MARGIN = SkIntToScalar(12); @@ -121,12 +121,12 @@ protected: &bigRect)); Draw(canvas, checkerboard, rect, - sk_sp<SkImageFilter>(SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, - SK_ColorWHITE, - surfaceScale, - kd, - noopCropped.get(), - &bigRect))); + SkLightingImageFilter::MakePointLitDiffuse(pointLocation, + SK_ColorWHITE, + surfaceScale, + kd, + noopCropped, + &bigRect)); canvas->restore(); canvas->translate(0, SkIntToScalar(80)); |