Index: src/utils/SkTextureCompressor.h |
diff --git a/src/utils/SkTextureCompressor.h b/src/utils/SkTextureCompressor.h |
index d4d48967a3dd66c235158d63d8acb5881d5c1310..1ae4aef1323363025263c7a67b30a8b724f51081 100644 |
--- a/src/utils/SkTextureCompressor.h |
+++ b/src/utils/SkTextureCompressor.h |
@@ -56,9 +56,8 @@ namespace SkTextureCompressor { |
// Returns an SkData holding a blob of compressed data that corresponds |
// to the pixmap. If the pixmap colorType cannot be compressed using the |
- // associated format, then we return nullptr. The caller is responsible for |
- // calling unref() on the returned data. |
- SkData* CompressBitmapToFormat(const SkPixmap&, Format format); |
+ // associated format, then we return nullptr. |
+ sk_sp<SkData> CompressBitmapToFormat(const SkPixmap&, Format format); |
// Compresses the given src data into dst. The src data is assumed to be |
// large enough to hold width*height pixels. The dst data is expected to |