Index: experimental/nanomsg/picture_demo.cpp |
diff --git a/experimental/nanomsg/picture_demo.cpp b/experimental/nanomsg/picture_demo.cpp |
index 859f20e96c1762ba19bb00d9e4f0826cc58a132d..a0b83a2579c77f859144fba478cd4f98b6da5784 100644 |
--- a/experimental/nanomsg/picture_demo.cpp |
+++ b/experimental/nanomsg/picture_demo.cpp |
@@ -80,7 +80,7 @@ static sk_sp<SkPicture> recv_picture(int socket, PictureHeader* header) { |
static void client(const char* skpPath, const char* dataEndpoint) { |
// Read the .skp. |
- SkAutoTUnref<const SkData> skp(SkData::NewFromFileName(skpPath)); |
+ sk_sp<SkData> skp(SkData::MakeFromFileName(skpPath)); |
if (!skp) { |
SkDebugf("Couldn't read %s\n", skpPath); |
exit(1); |