diff options
author | 2012-06-21 20:25:03 +0000 | |
---|---|---|
committer | 2012-06-21 20:25:03 +0000 | |
commit | 15e9d3e66e161ce23df30bc13f8a0c87d196b463 (patch) | |
tree | 2cc4661f85d92a98de30e7bca582163321fc018d /include/core/SkBitmap.h | |
parent | c82a8b7aa4ec19fba508c394920a9e88d3e5bd12 (diff) |
Expanded distribution of instance counting
http://codereview.appspot.com/6300114/
git-svn-id: http://skia.googlecode.com/svn/trunk@4291 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkBitmap.h')
-rw-r--r-- | include/core/SkBitmap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index 514357f6cc..8515b4601e 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -558,6 +558,8 @@ public: class Allocator : public SkRefCnt { public: + SK_DECLARE_INST_COUNT(Allocator) + /** Allocate the pixel memory for the bitmap, given its dimensions and config. Return true on success, where success means either setPixels or setPixelRef was called. The pixels need not be locked when this @@ -566,6 +568,8 @@ public: colortable should be left unchanged. */ virtual bool allocPixelRef(SkBitmap*, SkColorTable*) = 0; + private: + typedef SkRefCnt INHERITED; }; /** Subclass of Allocator that returns a pixelref that allocates its pixel |