Index: src/core/SkReadBuffer.h |
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h |
index 5db9f4644d46b2bfc9d5dc5fa103f26125455705..7ce6d048e9b22319d70b8d2cfa2e7570fb52a7e4 100644 |
--- a/src/core/SkReadBuffer.h |
+++ b/src/core/SkReadBuffer.h |
@@ -152,14 +152,14 @@ public: |
virtual bool readPointArray(SkPoint* points, size_t size); |
virtual bool readScalarArray(SkScalar* values, size_t size); |
- SkData* readByteArrayAsData() { |
+ sk_sp<SkData> readByteArrayAsData() { |
size_t len = this->getArrayCount(); |
if (!this->validateAvailable(len)) { |
- return SkData::NewEmpty(); |
+ return SkData::MakeEmpty(); |
} |
void* buffer = sk_malloc_throw(len); |
this->readByteArray(buffer, len); |
- return SkData::NewFromMalloc(buffer, len); |
+ return SkData::MakeFromMalloc(buffer, len); |
} |
// helpers to get info about arrays and binary data |