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

Unified Diff: include/core/SkPicture.h

Issue 741793002: Add SkNVRefCnt, prune down SkPicture's size (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: notes Created 6 years, 1 month 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/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index eee1ea840141bf5145e93893ad1824eb1aa38512..70901d5ab8d220f34d8b8450cc63f70ccb6a8d9b 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -40,7 +40,7 @@ namespace SkRecords {
The SkPicture class records the drawing commands made to a canvas, to
be played back at a later time.
*/
-class SK_API SkPicture : public SkRefCnt {
+class SK_API SkPicture : public SkNVRefCnt<SkPicture> {
public:
SK_DECLARE_INST_COUNT(SkPicture)
@@ -104,7 +104,7 @@ public:
*/
static SkPicture* CreateFromBuffer(SkReadBuffer&);
- virtual ~SkPicture();
+ ~SkPicture();
/** Replays the drawing commands on the specified canvas. Note that
this has the effect of unfurling this picture into the destination
« no previous file with comments | « gm/gmmain.cpp ('k') | include/core/SkRefCnt.h » ('j') | include/core/SkRefCnt.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698