diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-26 17:43:26 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-26 17:43:26 +0000 |
commit | 82ce2b8afb7c13c2a9f1b549a2a80dfca06bbf61 (patch) | |
tree | 6d2a822940550318ccfe433dfecb4a43e7e3088d | |
parent | 0682ca6971326a293285c1c90c9ef2fbbc54a4f3 (diff) |
add more SkInstCnt plumbing
git-svn-id: http://skia.googlecode.com/svn/trunk@4343 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | include/core/SkBounder.h | 2 | ||||
-rw-r--r-- | include/core/SkDrawFilter.h | 2 | ||||
-rw-r--r-- | src/core/SkCanvas.cpp | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkBounder.h b/include/core/SkBounder.h index 08cef2d59f..93d2e4f53b 100644 --- a/include/core/SkBounder.h +++ b/include/core/SkBounder.h @@ -29,6 +29,8 @@ class SkRegion; */ class SkBounder : public SkRefCnt { public: + SK_DECLARE_INST_COUNT(SkBounder) + SkBounder(); /* Call to perform a clip test before calling onIRect. diff --git a/include/core/SkDrawFilter.h b/include/core/SkDrawFilter.h index 39b1717617..1e843ec35f 100644 --- a/include/core/SkDrawFilter.h +++ b/include/core/SkDrawFilter.h @@ -23,6 +23,8 @@ class SkPaint; */ class SkDrawFilter : public SkRefCnt { public: + SK_DECLARE_INST_COUNT(SkDrawFilter) + enum Type { kPaint_Type, kPoint_Type, diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index fa9519e202..9ba76215e1 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -21,7 +21,10 @@ #include "SkTLazy.h" #include "SkUtils.h" +SK_DEFINE_INST_COUNT(SkBounder) SK_DEFINE_INST_COUNT(SkCanvas) +SK_DEFINE_INST_COUNT(SkDrawFilter) + //#define SK_TRACE_SAVERESTORE |