Index: samplecode/SampleTextureDomain.cpp |
diff --git a/samplecode/SampleTextureDomain.cpp b/samplecode/SampleTextureDomain.cpp |
index 65575338c9715131131c082fba7a86464e3071a9..2c6dd64301fca576da0e1a29a661f7b3d44df460 100644 |
--- a/samplecode/SampleTextureDomain.cpp |
+++ b/samplecode/SampleTextureDomain.cpp |
@@ -67,7 +67,7 @@ protected: |
surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint, |
SkCanvas::kStrict_SrcRectConstraint); |
- SkAutoTUnref<SkImage> image(surface->newImageSnapshot()); |
+ sk_sp<SkImage> image(surface->makeImageSnapshot()); |
srcRect.setXYWH(1, 1, 3, 3); |
dstRect.setXYWH(405, 5, 305, 305); |