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

Unified Diff: include/core/SkWriter32.h

Issue 1779263003: Make sp variants for SkData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix dynamicmemorywstream Created 4 years, 9 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
Index: include/core/SkWriter32.h
diff --git a/include/core/SkWriter32.h b/include/core/SkWriter32.h
index a2c6f5d4721c74847ba35ddc31e21fc9889aed3c..26388cd37ea9a735f5da9ef330e4f6eaddcc180a 100644
--- a/include/core/SkWriter32.h
+++ b/include/core/SkWriter32.h
@@ -246,7 +246,7 @@ public:
/**
* Captures a snapshot of the data as it is right now, and return it.
*/
- SkData* snapshotAsData() const;
+ sk_sp<SkData> snapshotAsData() const;
private:
void growToAtLeast(size_t size);

Powered by Google App Engine
This is Rietveld 408576698