Index: samplecode/SampleFatBits.cpp |
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp |
index f3a2f6c54a50f46c280f42883956c4b9b223126d..4b15e370e496ed092e43f01cedcadc76fed3c8ad 100644 |
--- a/samplecode/SampleFatBits.cpp |
+++ b/samplecode/SampleFatBits.cpp |
@@ -88,8 +88,7 @@ public: |
fBounds.set(0, 0, SkIntToScalar(width * zoom), SkIntToScalar(height * zoom)); |
fMatrix.setScale(SkIntToScalar(zoom), SkIntToScalar(zoom)); |
fInverse.setScale(SK_Scalar1 / zoom, SK_Scalar1 / zoom); |
- fShader.reset(sk_tool_utils::create_checkerboard_shader( |
- 0xFFCCCCCC, 0xFFFFFFFF, zoom)); |
+ fShader = sk_tool_utils::create_checkerboard_shader(0xFFCCCCCC, 0xFFFFFFFF, zoom); |
SkImageInfo info = SkImageInfo::MakeN32Premul(width, height); |
fMinSurface.reset(SkSurface::NewRaster(info)); |
@@ -111,7 +110,7 @@ private: |
int fW, fH, fZoom; |
SkMatrix fMatrix, fInverse; |
SkRect fBounds, fClipRect; |
- SkAutoTUnref<SkShader> fShader; |
+ sk_sp<SkShader> fShader; |
SkAutoTUnref<SkSurface> fMinSurface; |
SkAutoTUnref<SkSurface> fMaxSurface; |