aboutsummaryrefslogtreecommitdiff
path: root/tests/CodecTest.cpp
diff options
context:
space:
mode:
authorbungeman <bungeman@google.com>2016-08-03 13:32:32 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-03 13:32:32 -0700
commitffae30db4ade45b469ac3432ec373b6f6daee6e7 (patch)
treeacef6794a40b4525c09301cdf07590dcb4358d5b /tests/CodecTest.cpp
parentd1ec89b1aca8f37a460a425259a23275f4d9a81d (diff)
Convert SkAutoTUnref<SkData> to sk_sp<SkData>.
With the move from SkData::NewXXX to SkData::MakeXXX most SkAutoTUnref<SkData> were changed to sk_sp<SkData>. However, there are still a few SkAutoTUnref<SkData> around, so clean them up. Review-Url: https://codereview.chromium.org/2212493002
Diffstat (limited to 'tests/CodecTest.cpp')
-rw-r--r--tests/CodecTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp
index 7e1b594791..a5df7e3b50 100644
--- a/tests/CodecTest.cpp
+++ b/tests/CodecTest.cpp
@@ -823,8 +823,8 @@ DEF_TEST(Codec_pngChunkReader, r) {
ChunkReader chunkReader(r);
// Now read the file with SkCodec.
- SkAutoTUnref<SkData> data(wStream.copyToData());
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data, &chunkReader));
+ sk_sp<SkData> data(wStream.copyToData());
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get(), &chunkReader));
REPORTER_ASSERT(r, codec);
if (!codec) {
return;