summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 01:01:40 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 01:01:40 +0000
commit488f9dcdbb32b1a79b80255f29696ddd470f3f16 (patch)
treef13bb46ebadd523c2931c023e269bcce52a3b457 /skia
parentd4ad4318ab2afee45bf082886741e86f444d9e32 (diff)
downloadchromium_src-488f9dcdbb32b1a79b80255f29696ddd470f3f16.zip
chromium_src-488f9dcdbb32b1a79b80255f29696ddd470f3f16.tar.gz
chromium_src-488f9dcdbb32b1a79b80255f29696ddd470f3f16.tar.bz2
Add IsNativeFontRenderingAllowed to other platform device headers.
- Currently only the windows header has this function. Review URL: http://codereview.chromium.org/6667060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/platform_device_linux.h3
-rw-r--r--skia/ext/platform_device_mac.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/skia/ext/platform_device_linux.h b/skia/ext/platform_device_linux.h
index 0408f17..b1b67dd 100644
--- a/skia/ext/platform_device_linux.h
+++ b/skia/ext/platform_device_linux.h
@@ -20,6 +20,9 @@ class PlatformDevice : public SkDevice {
// Returns if the preferred rendering engine is vectorial or bitmap based.
virtual bool IsVectorial() = 0;
+ // Returns if native platform APIs are allowed to render text to this device.
+ virtual bool IsNativeFontRenderingAllowed() { return true; }
+
virtual PlatformSurface beginPlatformPaint() = 0;
protected:
diff --git a/skia/ext/platform_device_mac.h b/skia/ext/platform_device_mac.h
index 258e448..cf8b7058 100644
--- a/skia/ext/platform_device_mac.h
+++ b/skia/ext/platform_device_mac.h
@@ -41,6 +41,9 @@ class PlatformDevice : public SkDevice {
// Returns if the preferred rendering engine is vectorial or bitmap based.
virtual bool IsVectorial() = 0;
+ // Returns if native platform APIs are allowed to render text to this device.
+ virtual bool IsNativeFontRenderingAllowed() { return true; }
+
// Initializes the default settings and colors in a device context.
static void InitializeCGContext(CGContextRef context);