summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-12 05:13:23 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-12 05:13:23 +0000
commit726ff5d5e47384ee3b30a8b52504213d5c7987a9 (patch)
tree1ba77d53ad9513862f3886b3ac895fd7ecae611a /skia
parent1a2123c629bc9088e7fa67b466681f5b1ca17893 (diff)
downloadchromium_src-726ff5d5e47384ee3b30a8b52504213d5c7987a9.zip
chromium_src-726ff5d5e47384ee3b30a8b52504213d5c7987a9.tar.gz
chromium_src-726ff5d5e47384ee3b30a8b52504213d5c7987a9.tar.bz2
Provide a function that WebKit can use to determine if GDI text rendering is allowed on a PlatformDevice.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6681021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77924 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/platform_device_win.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/skia/ext/platform_device_win.h b/skia/ext/platform_device_win.h
index b3303b8..86f3495f 100644
--- a/skia/ext/platform_device_win.h
+++ b/skia/ext/platform_device_win.h
@@ -45,6 +45,9 @@ class PlatformDevice : public SkDevice {
// Returns if the preferred rendering engine is vectorial or bitmap based.
virtual bool IsVectorial() = 0;
+ // Returns if GDI is allowed to render text to this device.
+ virtual bool IsNativeFontRenderingAllowed() { return true; }
+
// Initializes the default settings and colors in a device context.
static void InitializeDC(HDC context);