summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/bitmap_platform_device_linux.h3
-rw-r--r--base/gfx/platform_device_linux.h4
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);