Index: samplecode/SampleCamera.cpp |
diff --git a/samplecode/SampleCamera.cpp b/samplecode/SampleCamera.cpp |
index 991013a850251e830bb0e68e9e708d8a34a016a8..b860917f3fbae8af849960bcb84498ca0c03a206 100644 |
--- a/samplecode/SampleCamera.cpp |
+++ b/samplecode/SampleCamera.cpp |
@@ -39,10 +39,10 @@ public: |
SkMatrix matrix; |
matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); |
- SkShader* s = SkShader::CreateBitmapShader(bm, |
+ SkShader* s = SkShader::MakeBitmapShader(bm, |
SkShader::kClamp_TileMode, |
SkShader::kClamp_TileMode, |
- &matrix); |
+ &matrix).release(); |
*fShaders.append() = s; |
} else { |
break; |