commit | 0456e0b7b85060e9b9597ce414c4c2b19aff4f58 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Jun 27 14:03:26 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Jun 27 14:03:26 2012 +0000 |
tree | 4ae48bfe49be4ac94979feb8ac2a1ad20e59421e | |
parent | 4bca84d3cf94da5e2c2fd3ea04bba7f96d57171e [diff] [blame] |
Added Inst counting to SkFlattenable-derived classes http://codereview.appspot.com/6355043/ git-svn-id: http://skia.googlecode.com/svn/trunk@4359 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp index 84cb291..25c92b7 100644 --- a/src/effects/SkLightingImageFilter.cpp +++ b/src/effects/SkLightingImageFilter.cpp
@@ -271,6 +271,8 @@ class SkLight : public SkFlattenable { public: + SK_DECLARE_INST_COUNT(SkLight) + enum LightType { kDistant_LightType, kPoint_LightType, @@ -289,6 +291,8 @@ typedef SkFlattenable INHERITED; }; +SK_DEFINE_INST_COUNT(SkLight) + class SkDistantLight : public SkLight { public: SkDistantLight(const SkPoint3& direction) : fDirection(direction) {