Index: gm/lightingshader.cpp |
diff --git a/gm/lightingshader.cpp b/gm/lightingshader.cpp |
index 9c45c9b78309e240e37c730443e645cdf3fcd84b..6d25671ac299e1e522e1a50d72b449415a67b088 100644 |
--- a/gm/lightingshader.cpp |
+++ b/gm/lightingshader.cpp |
@@ -98,14 +98,9 @@ protected: |
// TODO: correctly pull out the pure rotation |
SkVector invNormRotation = { ctm[SkMatrix::kMScaleX], ctm[SkMatrix::kMSkewY] }; |
- SkAutoTUnref<SkShader> fShader(SkLightingShader::Create( |
- fDiffuse, |
- fNormalMaps[mapType], |
- fLights, |
- invNormRotation, &matrix, &matrix)); |
- |
SkPaint paint; |
- paint.setShader(fShader); |
+ paint.setShader(SkLightingShader::Make(fDiffuse, fNormalMaps[mapType], fLights, |
+ invNormRotation, &matrix, &matrix)); |
canvas->drawRect(r, paint); |
} |