summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_device_win.h
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-21 14:53:37 +0000
committerreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-21 14:53:37 +0000
commit86cd4854c06e31d6c581d5d439ab97241d7d2fc5 (patch)
treeb83ea1c703e02a50a76d9ea7f92e67328c83009e /skia/ext/platform_device_win.h
parentb1e544f36255f965ba719ee40dde4c9880fd81ce (diff)
downloadchromium_src-86cd4854c06e31d6c581d5d439ab97241d7d2fc5.zip
chromium_src-86cd4854c06e31d6c581d5d439ab97241d7d2fc5.tar.gz
chromium_src-86cd4854c06e31d6c581d5d439ab97241d7d2fc5.tar.bz2
support text drawing instead of asserting
add bool return for LoadPathToDC() since it can fail and the caller needs to know. Review URL: http://codereview.chromium.org/7443006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93395 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/platform_device_win.h')
-rw-r--r--skia/ext/platform_device_win.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/skia/ext/platform_device_win.h b/skia/ext/platform_device_win.h
index a5445aa..57afa89 100644
--- a/skia/ext/platform_device_win.h
+++ b/skia/ext/platform_device_win.h
@@ -53,8 +53,8 @@ class SK_API PlatformDevice : public SkDevice {
virtual bool IsNativeFontRenderingAllowed() { return true; }
// Loads a SkPath into the GDI context. The path can there after be used for
- // clipping or as a stroke.
- static void LoadPathToDC(HDC context, const SkPath& path);
+ // clipping or as a stroke. Returns false if the path failed to be loaded.
+ static bool LoadPathToDC(HDC context, const SkPath& path);
// Loads a SkRegion into the GDI context.
static void LoadClippingRegionToDC(HDC context, const SkRegion& region,