Index: src/core/SkPictureRecord.cpp |
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp |
index d85376a118a9310b87e29e0e7a7170dd35eee8b5..776e337ff4fa198d2ca9eeb95f841ae01563dd1b 100644 |
--- a/src/core/SkPictureRecord.cpp |
+++ b/src/core/SkPictureRecord.cpp |
@@ -904,10 +904,10 @@ static bool equivalent(const SkBitmap& a, const SkBitmap& b) { |
} |
// If the bitmaps have encoded data, check first before locking pixels so they don't decode. |
- SkAutoTUnref<SkData> encA(a.pixelRef()->refEncodedData()), |
- encB(b.pixelRef()->refEncodedData()); |
+ sk_sp<SkData> encA(a.pixelRef()->refEncodedData()), |
+ encB(b.pixelRef()->refEncodedData()); |
if (encA && encB) { |
- return encA->equals(encB); |
+ return encA->equals(encB.get()); |
} else if (encA || encB) { |
return false; // One has encoded data but the other does not. |
} |