diff options
author | reed <reed@google.com> | 2016-03-18 07:25:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-18 07:25:55 -0700 |
commit | ca2622ba051829fed5f30facd74c5b41cd4b931c (patch) | |
tree | 3d8248b7764e500f857b3d6cfb6866e72b632199 /fuzz | |
parent | eb75c7db3a7372de68347d0df8d58acebc33a9ad (diff) |
return pictures as sk_sp
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1811703002
Review URL: https://codereview.chromium.org/1811703002
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/fuzz.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/fuzz.cpp b/fuzz/fuzz.cpp index dce9c8adbb..40f48175e2 100644 --- a/fuzz/fuzz.cpp +++ b/fuzz/fuzz.cpp @@ -358,7 +358,7 @@ int fuzz_img(SkData* bytes, uint8_t scale, uint8_t mode) { int fuzz_skp(SkData* bytes) { SkMemoryStream stream(bytes); SkDebugf("Decoding\n"); - SkAutoTUnref<SkPicture> pic(SkPicture::CreateFromStream(&stream)); + sk_sp<SkPicture> pic(SkPicture::MakeFromStream(&stream)); if (!pic) { SkDebugf("[terminated] Couldn't decode as a picture.\n"); return 3; |