Index: tools/skdiff_utils.cpp |
diff --git a/tools/skdiff_utils.cpp b/tools/skdiff_utils.cpp |
index 3d4bf7ea9329a29cc068719a9f13b614190c9495..3a377336829ecaf6ff566ac76fd5b6e8d4e78c44 100644 |
--- a/tools/skdiff_utils.cpp |
+++ b/tools/skdiff_utils.cpp |
@@ -25,8 +25,8 @@ bool are_buffers_equal(SkData* skdata1, SkData* skdata2) { |
return (0 == memcmp(skdata1->data(), skdata2->data(), skdata1->size())); |
} |
-SkData* read_file(const char* file_path) { |
- SkData* data = SkData::NewFromFileName(file_path); |
+sk_sp<SkData> read_file(const char* file_path) { |
+ sk_sp<SkData> data(SkData::MakeFromFileName(file_path)); |
if (!data) { |
SkDebugf("WARNING: could not open file <%s> for reading\n", file_path); |
} |