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/SkRefCnt.h

Issue 15675025: One allocation for an SkData which makes a copy. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Use 'this' instead of function as special case trigger. Created 7 years, 6 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/SkRefCnt.h
===================================================================
--- include/core/SkRefCnt.h (revision 9507)
+++ include/core/SkRefCnt.h (working copy)
@@ -104,9 +104,11 @@
SkDELETE(this);
}
+ // The following friends are those which override internal_dispose()
+ // and conditionally call SkRefCnt::internal_dispose().
+ friend class GrTexture;
+ friend class SkData;
friend class SkWeakRefCnt;
- friend class GrTexture; // to allow GrTexture's internal_dispose to
- // call SkRefCnt's & directly set fRefCnt (to 1)
mutable int32_t fRefCnt;
« no previous file with comments | « include/core/SkData.h ('k') | include/core/SkWeakRefCnt.h » ('j') | src/core/SkData.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698