summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 01:33:34 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 01:33:34 +0000
commit6d8c07db861dedcec1bff118e5d6d330c55d6290 (patch)
treecb9a79a9045ebbf70d6ef69f1c1fd9555ef16521 /skia
parent5a3b4d3d89a226326174279ba1478ee069d015be (diff)
downloadchromium_src-6d8c07db861dedcec1bff118e5d6d330c55d6290.zip
chromium_src-6d8c07db861dedcec1bff118e5d6d330c55d6290.tar.gz
chromium_src-6d8c07db861dedcec1bff118e5d6d330c55d6290.tar.bz2
Fix clang 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/6674048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/platform_device_linux.cc4
-rw-r--r--skia/ext/platform_device_linux.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/skia/ext/platform_device_linux.cc b/skia/ext/platform_device_linux.cc
index 46b5350..c8ea48e 100644
--- a/skia/ext/platform_device_linux.cc
+++ b/skia/ext/platform_device_linux.cc
@@ -10,4 +10,8 @@ PlatformDevice::PlatformDevice(const SkBitmap& bitmap)
: SkDevice(NULL, bitmap, /*isForLayer=*/false) {
}
+bool PlatformDevice::IsNativeFontRenderingAllowed() {
+ return true;
+}
+
} // namespace skia
diff --git a/skia/ext/platform_device_linux.h b/skia/ext/platform_device_linux.h
index b1b67dd..17cb67f 100644
--- a/skia/ext/platform_device_linux.h
+++ b/skia/ext/platform_device_linux.h
@@ -21,7 +21,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();
virtual PlatformSurface beginPlatformPaint() = 0;