Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index fdb66b378bea45fadbea5114524ed549a77a7f90..7e8e62e88b2c684adb5573a782da5cd06c47d73a 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -1163,7 +1163,7 @@ bool SkBitmap::ReadRawPixels(SkReadBuffer* buffer, SkBitmap* bitmap) { |
return false; |
} |
- SkAutoDataUnref data(SkData::NewUninitialized(SkToSizeT(ramSize))); |
+ sk_sp<SkData> data(SkData::MakeUninitialized(SkToSizeT(ramSize))); |
unsigned char* dst = (unsigned char*)data->writable_data(); |
buffer->readByteArray(dst, SkToSizeT(snugSize)); |