From cde92111d50a96b6d0f3e166fbac7c9bc6eca349 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 6 Jul 2011 20:00:52 +0000 Subject: remove SkDeviceFactory from the collective consciousness, now that devices know how to create compatible siblings. git-svn-id: http://skia.googlecode.com/svn/trunk@1808 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/pdf/SkPDFDevice.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'include/pdf') diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h index afe0ffff80..a5abcfcc50 100644 --- a/include/pdf/SkPDFDevice.h +++ b/include/pdf/SkPDFDevice.h @@ -39,12 +39,6 @@ class SkPDFStream; struct ContentEntry; struct GraphicStateEntry; -class SkPDFDeviceFactory : public SkDeviceFactory { -public: - virtual SkDevice* newDevice(SkCanvas*, SkBitmap::Config, int width, - int height, bool isOpaque, bool isForLayer); -}; - /** \class SkPDFDevice The drawing context for the PDF backend. @@ -65,7 +59,7 @@ public: * a scale+translate transform to move the origin from the * bottom left (PDF default) to the top left. Note2: drawDevice * (used by layer restore) draws the device after this initial - * transform is applied, so the PDF device factory does an + * transform is applied, so the PDF device does an * inverse scale+translate to accommodate the one that SkPDFDevice * always does. */ @@ -150,12 +144,7 @@ public: return fInitialTransform; } -protected: - // override - virtual SkDeviceFactory* onNewDeviceFactory(); - private: - friend class SkPDFDeviceFactory; // TODO(vandebo) push most of SkPDFDevice's state into a core object in // order to get the right access levels without using friend. friend class ScopedContentEntry; @@ -175,7 +164,6 @@ private: SkTScopedPtr fContentEntries; ContentEntry* fLastContentEntry; - // For use by the DeviceFactory. SkPDFDevice(const SkISize& layerSize, const SkClipStack& existingClipStack, const SkRegion& existingClipRegion); -- cgit v1.2.3