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

Unified Diff: src/core/SkWriteBuffer.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/SkPictureRecord.cpp ('k') | src/gpu/SkGr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkWriteBuffer.cpp
diff --git a/src/core/SkWriteBuffer.cpp b/src/core/SkWriteBuffer.cpp
index e954399b0994eac3c352956b642b534eeefcdeda..33ac03b49de66e51d82fc1a0bb1a1a1c4c4c05b9 100644
--- a/src/core/SkWriteBuffer.cpp
+++ b/src/core/SkWriteBuffer.cpp
@@ -176,9 +176,9 @@ void SkBinaryWriteBuffer::writeImage(const SkImage* image) {
this->writeInt(image->width());
this->writeInt(image->height());
- SkAutoTUnref<SkData> encoded(image->encode(this->getPixelSerializer()));
+ sk_sp<SkData> encoded(image->encode(this->getPixelSerializer()));
if (encoded && encoded->size() > 0) {
- write_encoded_bitmap(this, encoded, SkIPoint::Make(0, 0));
+ write_encoded_bitmap(this, encoded.get(), SkIPoint::Make(0, 0));
return;
}
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/gpu/SkGr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698