summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 02:08:24 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 02:08:24 +0000
commit8d51d5b3410eb831650235db3132ce2014617945 (patch)
tree5fa3f22d362506015a60b5b422cf15cc0645630b /skia
parent367e944e34332bec86ab2562a9b6e4c0133a9cfd (diff)
downloadchromium_src-8d51d5b3410eb831650235db3132ce2014617945.zip
chromium_src-8d51d5b3410eb831650235db3132ce2014617945.tar.gz
chromium_src-8d51d5b3410eb831650235db3132ce2014617945.tar.bz2
Fix clang mac compile error.
- [chromium-style] virtual methods with non-empty bodies shouldn't be declared inline. TBR=vandebo BUG=none TEST=none Review URL: http://codereview.chromium.org/6672069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/platform_device_mac.cc4
-rw-r--r--skia/ext/platform_device_mac.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/skia/ext/platform_device_mac.cc b/skia/ext/platform_device_mac.cc
index 31f0d19..30a179a 100644
--- a/skia/ext/platform_device_mac.cc
+++ b/skia/ext/platform_device_mac.cc
@@ -36,6 +36,10 @@ PlatformDevice::PlatformDevice(const SkBitmap& bitmap)
: SkDevice(NULL, bitmap, /*isForLayer=*/false) {
}
+bool PlatformDevice::IsNativeFontRenderingAllowed() {
+ return true;
+}
+
// Set up the CGContextRef for peaceful coexistence with Skia
void PlatformDevice::InitializeCGContext(CGContextRef context) {
// CG defaults to the same settings as Skia
diff --git a/skia/ext/platform_device_mac.h b/skia/ext/platform_device_mac.h
index cf8b7058..d3ad829 100644
--- a/skia/ext/platform_device_mac.h
+++ b/skia/ext/platform_device_mac.h
@@ -42,7 +42,7 @@ class PlatformDevice : public SkDevice {
virtual bool IsVectorial() = 0;
// Returns if native platform APIs are allowed to render text to this device.
- virtual bool IsNativeFontRenderingAllowed() { return true; }
+ virtual bool IsNativeFontRenderingAllowed();
// Initializes the default settings and colors in a device context.
static void InitializeCGContext(CGContextRef context);