diff options
author | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-26 11:48:33 +0000 |
---|---|---|
committer | mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-26 11:48:33 +0000 |
commit | ea4ac97dec2eb291139bd906939e0d2e05cdd7ef (patch) | |
tree | d9eee5c680c32669a48c21a564515a66e00a1258 /include/pdf | |
parent | 9ce767c41333682c858ff26e99be2b800a2ef2b0 (diff) |
make SkDeviceFactory reference counted
git-svn-id: http://skia.googlecode.com/svn/trunk@1180 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pdf')
-rw-r--r-- | include/pdf/SkPDFDevice.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h index ac9ef20fc4..0d06fe6715 100644 --- a/include/pdf/SkPDFDevice.h +++ b/include/pdf/SkPDFDevice.h @@ -61,10 +61,6 @@ public: SkPDFDevice(int width, int height, const SkMatrix& initialTransform); virtual ~SkPDFDevice(); - virtual SkDeviceFactory* getDeviceFactory() { - return SkNEW(SkPDFDeviceFactory); - } - virtual uint32_t getDeviceCapabilities() { return kVector_Capability; } virtual int width() const { return fWidth; }; @@ -138,6 +134,10 @@ public: */ SkStream* content() const; +protected: + // override + virtual SkDeviceFactory* onNewDeviceFactory(); + private: int fWidth; int fHeight; |