diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-29 14:05:00 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-29 14:05:00 +0000 |
commit | 5e9ed7b48f89fb7aa528e44eb7e6f37bf48a78ae (patch) | |
tree | e839f0a901732f6cd936feb9ba1332bc2518a80f /skia | |
parent | 1330fd4e5905f532cf1eb3e345759cb09210f7f4 (diff) | |
download | chromium_src-5e9ed7b48f89fb7aa528e44eb7e6f37bf48a78ae.zip chromium_src-5e9ed7b48f89fb7aa528e44eb7e6f37bf48a78ae.tar.gz chromium_src-5e9ed7b48f89fb7aa528e44eb7e6f37bf48a78ae.tar.bz2 |
skia: Fix clang warnings about missing virtual and OVERRIDE annotations.
BUG=115047
R=thakis@chromium.org
Review URL: https://codereview.chromium.org/10970069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/SkFontHost_fontconfig.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/skia/ext/SkFontHost_fontconfig.cpp b/skia/ext/SkFontHost_fontconfig.cpp index ce20e52..757672f 100644 --- a/skia/ext/SkFontHost_fontconfig.cpp +++ b/skia/ext/SkFontHost_fontconfig.cpp @@ -31,6 +31,7 @@ #include <sys/stat.h> #include <unistd.h> +#include "base/compiler_specific.h" #include "third_party/skia/src/ports/SkFontDescriptor.h" #include "SkFontHost.h" #include "SkStream.h" @@ -109,7 +110,7 @@ public: : SkTypeface(style, id) { } - ~FontConfigTypeface() + virtual ~FontConfigTypeface() { const uint32_t id = uniqueID(); if (IsRemoteFont(UniqueIdToFileFaceId(id))) { @@ -280,17 +281,17 @@ class SkFileDescriptorStream : public SkStream { length_ = st.st_size; } - ~SkFileDescriptorStream() { + virtual ~SkFileDescriptorStream() { munmap(const_cast<uint8_t*>(memory_), length_); } - virtual bool rewind() { + virtual bool rewind() OVERRIDE { offset_ = 0; return true; } // SkStream implementation. - virtual size_t read(void* buffer, size_t size) { + virtual size_t read(void* buffer, size_t size) OVERRIDE { if (!buffer && !size) { // This is request for the length of the stream. return length_; @@ -306,7 +307,7 @@ class SkFileDescriptorStream : public SkStream { return size; } - virtual const void* getMemoryBase() { + virtual const void* getMemoryBase() OVERRIDE { return memory_; } |