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

Unified Diff: src/core/SkPictureData.h

Issue 1779263003: Make sp variants for SkData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPictureData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureData.h
diff --git a/src/core/SkPictureData.h b/src/core/SkPictureData.h
index 4e4deef55a323e7ebc10d9b7353e2a0531e458d4..3acaf579bc8e5200fda3a99ece271783faea2b8d 100644
--- a/src/core/SkPictureData.h
+++ b/src/core/SkPictureData.h
@@ -77,7 +77,7 @@ public:
int opCount() const { return fContentInfo.numOperations(); }
- const SkData* opData() const { return fOpData; }
+ const sk_sp<SkData>& opData() const { return fOpData; }
protected:
explicit SkPictureData(const SkPictInfo& info);
@@ -158,7 +158,7 @@ private:
SkTArray<SkPaint> fPaints;
SkTArray<SkPath> fPaths;
- SkData* fOpData; // opcodes and parameters
+ sk_sp<SkData> fOpData; // opcodes and parameters
const SkPicture** fPictureRefs;
int fPictureCount;
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPictureData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698