diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-13 20:10:45 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-13 20:10:45 +0000 |
commit | ddb1e5ae096bd91da721887fd55e68c603bf7067 (patch) | |
tree | 401d9a379ff03bb8b69a1ce9c23fe182f673f587 /skia | |
parent | 1c9526e0650a91e412d815417634c9f193b1a4d5 (diff) | |
download | chromium_src-ddb1e5ae096bd91da721887fd55e68c603bf7067.zip chromium_src-ddb1e5ae096bd91da721887fd55e68c603bf7067.tar.gz chromium_src-ddb1e5ae096bd91da721887fd55e68c603bf7067.tar.bz2 |
Even more virtual method deinlining.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/5741001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/vector_platform_device_linux.cc | 12 | ||||
-rw-r--r-- | skia/ext/vector_platform_device_linux.h | 8 |
2 files changed, 15 insertions, 5 deletions
diff --git a/skia/ext/vector_platform_device_linux.cc b/skia/ext/vector_platform_device_linux.cc index 3d45596..94292cdb 100644 --- a/skia/ext/vector_platform_device_linux.cc +++ b/skia/ext/vector_platform_device_linux.cc @@ -122,6 +122,18 @@ VectorPlatformDevice::~VectorPlatformDevice() { cairo_destroy(context_); } +SkDeviceFactory* VectorPlatformDevice::getDeviceFactory() { + return SkNEW(VectorPlatformDeviceFactory); +} + +bool VectorPlatformDevice::IsVectorial() { + return true; +} + +PlatformDevice::PlatformSurface VectorPlatformDevice::beginPlatformPaint() { + return context_; +} + void VectorPlatformDevice::drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, const SkMatrix& matrix, diff --git a/skia/ext/vector_platform_device_linux.h b/skia/ext/vector_platform_device_linux.h index c6cff16..1cf8a0c 100644 --- a/skia/ext/vector_platform_device_linux.h +++ b/skia/ext/vector_platform_device_linux.h @@ -33,12 +33,10 @@ class VectorPlatformDevice : public PlatformDevice { int width, int height); virtual ~VectorPlatformDevice(); - virtual SkDeviceFactory* getDeviceFactory() { - return SkNEW(VectorPlatformDeviceFactory); - } + virtual SkDeviceFactory* getDeviceFactory(); - virtual bool IsVectorial() { return true; } - virtual PlatformSurface beginPlatformPaint() { return context_; } + virtual bool IsVectorial(); + virtual PlatformSurface beginPlatformPaint(); // We translate following skia APIs into corresponding Cairo APIs. virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, |