diff options
author | reed <reed@google.com> | 2016-03-11 13:02:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-11 13:02:28 -0800 |
commit | fde05114e6c4107b36e1aa571c64d31def40f613 (patch) | |
tree | bb3997b32141ea4984255e833d03cb1caed76904 /src/core/SkReader32.h | |
parent | 51c8cfc64c7286ad8a392064cd376bb9974c7bc1 (diff) |
Make sp variants for SkData
Review URL: https://codereview.chromium.org/1779263003
Diffstat (limited to 'src/core/SkReader32.h')
-rw-r--r-- | src/core/SkReader32.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkReader32.h b/src/core/SkReader32.h index 645d64cc24..7e31fb9e23 100644 --- a/src/core/SkReader32.h +++ b/src/core/SkReader32.h @@ -135,12 +135,12 @@ public: */ size_t readIntoString(SkString* copy); - SkData* readData() { + sk_sp<SkData> readData() { uint32_t byteLength = this->readU32(); if (0 == byteLength) { - return SkData::NewEmpty(); + return SkData::MakeEmpty(); } - return SkData::NewWithCopy(this->skip(byteLength), byteLength); + return SkData::MakeWithCopy(this->skip(byteLength), byteLength); } private: |