diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-21 19:42:42 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-21 19:42:42 +0000 |
commit | d44b526f2a8c502feb4baf6bf32c7971e7102729 (patch) | |
tree | b30d26f86cb214d3d1f5d56d2ab04fb4f2853076 /base/gfx | |
parent | 3fca23f7fc46d3fe0016040d53065b3676011118 (diff) | |
download | chromium_src-d44b526f2a8c502feb4baf6bf32c7971e7102729.zip chromium_src-d44b526f2a8c502feb4baf6bf32c7971e7102729.tar.gz chromium_src-d44b526f2a8c502feb4baf6bf32c7971e7102729.tar.bz2 |
Build SkGraphicsContext under Linux
Review URL: http://codereview.chromium.org/8019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r-- | base/gfx/bitmap_platform_device_linux.h | 3 | ||||
-rw-r--r-- | base/gfx/platform_device_linux.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/base/gfx/bitmap_platform_device_linux.h b/base/gfx/bitmap_platform_device_linux.h index f459d42..3059c2c 100644 --- a/base/gfx/bitmap_platform_device_linux.h +++ b/base/gfx/bitmap_platform_device_linux.h @@ -27,6 +27,9 @@ class BitmapPlatformDeviceLinux : public PlatformDeviceLinux { // A stub copy constructor. Needs to be properly implemented. BitmapPlatformDeviceLinux(const BitmapPlatformDeviceLinux& other); + + // Bitmaps aren't vector graphics. + virtual bool IsVectorial() { return false; } }; } // namespace gfx diff --git a/base/gfx/platform_device_linux.h b/base/gfx/platform_device_linux.h index 52fbfae..8be2e4a 100644 --- a/base/gfx/platform_device_linux.h +++ b/base/gfx/platform_device_linux.h @@ -11,6 +11,10 @@ namespace gfx { // Blindly copying the mac hierarchy. class PlatformDeviceLinux : public SkDevice { + public: + // Returns if the preferred rendering engine is vectorial or bitmap based. + virtual bool IsVectorial() = 0; + protected: // Forwards |bitmap| to SkDevice's constructor. PlatformDeviceLinux(const SkBitmap& bitmap); |