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

Unified Diff: include/core/SkRefCnt.h

Issue 17880003: Alias deref -> unref. This allows Skia objects to be held by WTF::RefPtr (Closed) Base URL: http://skia.googlecode.com/svn/trunk
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRefCnt.h
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h
index c20ef24069371eb58c3c78e010211012e520aa49..6c7d922dfe72515325fc7f672d9beb9d2f5611b4 100644
--- a/include/core/SkRefCnt.h
+++ b/include/core/SkRefCnt.h
@@ -81,6 +81,11 @@ public:
*/
void Release() { this->unref(); }
+ /**
+ * Alias for unref(), for compatibility with WTF::RefPtr.
+ */
+ void deref() { this->unref(); }
+
protected:
/**
* Allow subclasses to call this if they've overridden internal_dispose
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698