Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: src/core/SkPictureRecord.cpp

Issue 2212493002: Convert SkAutoTUnref<SkData> to sk_sp<SkData>. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkImageCacherator.cpp ('k') | src/core/SkWriteBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
}
« no previous file with comments | « src/core/SkImageCacherator.cpp ('k') | src/core/SkWriteBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698