diff options
author | reed <reed@google.com> | 2016-09-12 12:01:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-12 12:01:44 -0700 |
commit | 42943c8aa9c611c18ad0f1a30a27669f3d82239c (patch) | |
tree | deff0bbc59dd92559191c188d73f97b4f9c580aa /tests/CodecPriv.h | |
parent | 09524ae42998ece3a8e7973064ab286646511b31 (diff) |
change SkStreams to work with sk_sp<SkData> instead of SkData*
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2333713002
Review-Url: https://codereview.chromium.org/2333713002
Diffstat (limited to 'tests/CodecPriv.h')
-rw-r--r-- | tests/CodecPriv.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/CodecPriv.h b/tests/CodecPriv.h index 4e42731b01..a5afb09ba4 100644 --- a/tests/CodecPriv.h +++ b/tests/CodecPriv.h @@ -10,9 +10,7 @@ #include "SkData.h" inline bool decode_memory(const void* mem, size_t size, SkBitmap* bm) { - sk_sp<SkData> data(SkData::MakeWithoutCopy(mem, size)); - - SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get())); + SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(SkData::MakeWithoutCopy(mem, size))); if (!codec) { return false; } |