aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/pdf
diff options
context:
space:
mode:
authorGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-10-26 19:47:30 +0000
committerGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-10-26 19:47:30 +0000
commit35fc62b960db6739b19c59576085663796951e47 (patch)
treea8f3c6354267feb10bbdb9f507d623396baaeede /include/pdf
parentddbbd805b5b453e12cda0b3300e5655d8fb2bc19 (diff)
Move the device capability method to SkDevice.
These are not the capabilities of the factory, but of the device. Additionally, it is more often needed when you have a device then when you have a factory, which caused creating of a new factory. Review URL: http://codereview.appspot.com/2720041 git-svn-id: http://skia.googlecode.com/svn/trunk@618 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pdf')
-rw-r--r--include/pdf/SkPDFDevice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h
index fb74c63a1b..b972dd4752 100644
--- a/include/pdf/SkPDFDevice.h
+++ b/include/pdf/SkPDFDevice.h
@@ -31,7 +31,6 @@ class SkPDFStream;
class SkPDFDeviceFactory : public SkDeviceFactory {
virtual SkDevice* newDevice(SkBitmap::Config config, int width, int height,
bool isOpaque, bool isForLayer);
- virtual uint32_t getDeviceCapabilities() { return 0; }
};
/** \class SkPDFDevice
@@ -52,6 +51,8 @@ public:
return SkNEW(SkPDFDeviceFactory);
}
+ virtual uint32_t getDeviceCapabilities() { return kVector_Capability; }
+
virtual int width() const { return fWidth; };
virtual int height() const { return fHeight; };