aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkReader32.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-03-11 13:02:28 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-11 13:02:28 -0800
commitfde05114e6c4107b36e1aa571c64d31def40f613 (patch)
treebb3997b32141ea4984255e833d03cb1caed76904 /src/core/SkReader32.h
parent51c8cfc64c7286ad8a392064cd376bb9974c7bc1 (diff)
Make sp variants for SkData
Diffstat (limited to 'src/core/SkReader32.h')
-rw-r--r--src/core/SkReader32.h6
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: