aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/pdf/SkPDFDevice.h
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-26 11:48:33 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-26 11:48:33 +0000
commitea4ac97dec2eb291139bd906939e0d2e05cdd7ef (patch)
treed9eee5c680c32669a48c21a564515a66e00a1258 /include/pdf/SkPDFDevice.h
parent9ce767c41333682c858ff26e99be2b800a2ef2b0 (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/SkPDFDevice.h')
-rw-r--r--include/pdf/SkPDFDevice.h8
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;