aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDocument.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-11 22:29:29 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-11 22:29:29 +0000
commitef284a84f503adfd08ee52b5aee142c548698ea4 (patch)
treef5f6fea1a5769031df5336a9a4c30ae45c1159a9 /include/core/SkDocument.h
parent40ea172f1ee50320fd690ace2cfcb84c09b86731 (diff)
The two leaks are:
missing unrefs in megalooper GM missing reset capability in oval renderer This CL also expands the instance counting system to some recently adding classes (e.g., SkFontStyleSet) R=bsalomon@google.com, jvanverth@google.com Author: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/18461007 git-svn-id: http://skia.googlecode.com/svn/trunk@10030 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkDocument.h')
-rw-r--r--include/core/SkDocument.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkDocument.h b/include/core/SkDocument.h
index b1c1fcf9c0..bbed64a806 100644
--- a/include/core/SkDocument.h
+++ b/include/core/SkDocument.h
@@ -26,6 +26,8 @@ class SkWStream;
*/
class SkDocument : public SkRefCnt {
public:
+ SK_DECLARE_INST_COUNT(SkDocument)
+
/**
* Create a PDF-backed document, writing the results into a file.
* If there is an error trying to create the doc, returns NULL.
@@ -89,6 +91,8 @@ private:
SkWStream* fStream;
void (*fDoneProc)(SkWStream*);
State fState;
+
+ typedef SkRefCnt INHERITED;
};
#endif