From ea4ac97dec2eb291139bd906939e0d2e05cdd7ef Mon Sep 17 00:00:00 2001 From: "mike@reedtribe.org" Date: Tue, 26 Apr 2011 11:48:33 +0000 Subject: make SkDeviceFactory reference counted git-svn-id: http://skia.googlecode.com/svn/trunk@1180 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/pdf/SkPDFDevice.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/pdf/SkPDFDevice.h') 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; -- cgit v1.2.3