Index: experimental/SkV8Example/SkV8Example.cpp |
diff --git a/experimental/SkV8Example/SkV8Example.cpp b/experimental/SkV8Example/SkV8Example.cpp |
index 3882c3e9b320a8652c39c738e432f12ea30dcf97..5bfd64d6e26ae75f0bebd8a50ee605e8264c7068 100644 |
--- a/experimental/SkV8Example/SkV8Example.cpp |
+++ b/experimental/SkV8Example/SkV8Example.cpp |
@@ -200,9 +200,9 @@ SkOSWindow* create_sk_window(void* hwnd, int argc, char** argv) { |
" canvas.inval(); \n" |
"} \n"; |
- SkAutoTUnref<SkData> data; |
+ sk_sp<SkData> data; |
if (FLAGS_infile.count()) { |
- data.reset(SkData::NewFromFileName(FLAGS_infile[0])); |
+ data = SkData::MakeFromFileName(FLAGS_infile[0]); |
script = static_cast<const char*>(data->data()); |
} |
if (NULL == script) { |