add more SkInstCnt plumbing

git-svn-id: http://skia.googlecode.com/svn/trunk@4343 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2012-06-26 17:43:26 +00:00
parent 0682ca6971
commit 82ce2b8afb
3 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,8 @@ class SkRegion;
*/ */
class SkBounder : public SkRefCnt { class SkBounder : public SkRefCnt {
public: public:
SK_DECLARE_INST_COUNT(SkBounder)
SkBounder(); SkBounder();
/* Call to perform a clip test before calling onIRect. /* Call to perform a clip test before calling onIRect.

View File

@ -23,6 +23,8 @@ class SkPaint;
*/ */
class SkDrawFilter : public SkRefCnt { class SkDrawFilter : public SkRefCnt {
public: public:
SK_DECLARE_INST_COUNT(SkDrawFilter)
enum Type { enum Type {
kPaint_Type, kPaint_Type,
kPoint_Type, kPoint_Type,

View File

@ -21,7 +21,10 @@
#include "SkTLazy.h" #include "SkTLazy.h"
#include "SkUtils.h" #include "SkUtils.h"
SK_DEFINE_INST_COUNT(SkBounder)
SK_DEFINE_INST_COUNT(SkCanvas) SK_DEFINE_INST_COUNT(SkCanvas)
SK_DEFINE_INST_COUNT(SkDrawFilter)
//#define SK_TRACE_SAVERESTORE //#define SK_TRACE_SAVERESTORE