Index: gm/imagefilterscropexpand.cpp |
diff --git a/gm/imagefilterscropexpand.cpp b/gm/imagefilterscropexpand.cpp |
index 6f749dc7e53fcf0be8fac85d6c38f25419ba3c21..3d5fcf3612f217071fcb27d90e31fc12d71a82fc 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)); |