Index: src/core/SkReader32.h |
diff --git a/src/core/SkReader32.h b/src/core/SkReader32.h |
index 645d64cc24590b5c6fc784b5be6878e0ff7b19fd..7e31fb9e23879e64f647955dc8dd9ea642645c29 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: |