*/
class SK_API SkTypeface : public SkWeakRefCnt {
public:
+ SK_DECLARE_INST_COUNT(SkTypeface)
+
/** Style specifies the intrinsic style attributes of a given typeface
*/
enum Style {
*/
class SK_API SkWeakRefCnt : public SkRefCnt {
public:
+ SK_DECLARE_INST_COUNT(SkWeakRefCnt)
+
/** Default construct, initializing the reference counts to 1.
The strong references collectively hold one weak reference. When the
strong reference count goes to zero, the collectively held weak
#include "SkRefCnt.h"
+#include "SkWeakRefCnt.h"
SK_DEFINE_INST_COUNT(SkRefCnt)
+SK_DEFINE_INST_COUNT(SkWeakRefCnt)
#include "SkTypeface.h"
#include "SkFontHost.h"
+SK_DEFINE_INST_COUNT(SkTypeface)
+
//#define TRACE_LIFECYCLE
#ifdef TRACE_LIFECYCLE