Add needed virtual destructors.

These were found by the clang on Windows build.

R=mtklein@google.com

Author: bungeman@google.com

Review URL: https://codereview.chromium.org/328303005
This commit is contained in:
bungeman 2014-06-19 11:26:59 -07:00 committed by Commit bot
parent 0f9bad01b0
commit d7f846bdd1
3 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public:
private: private:
StreamFontFileLoader(SkStream* stream) : fRefCount(1), fStream(SkRef(stream)) { } StreamFontFileLoader(SkStream* stream) : fRefCount(1), fStream(SkRef(stream)) { }
virtual ~StreamFontFileLoader() { }
ULONG fRefCount; ULONG fRefCount;
}; };
@ -107,6 +108,8 @@ public:
} }
private: private:
StreamFontFileEnumerator(IDWriteFactory* factory, IDWriteFontFileLoader* fontFileLoader); StreamFontFileEnumerator(IDWriteFactory* factory, IDWriteFontFileLoader* fontFileLoader);
virtual ~StreamFontFileEnumerator() { }
ULONG fRefCount; ULONG fRefCount;
SkTScopedComPtr<IDWriteFactory> fFactory; SkTScopedComPtr<IDWriteFactory> fFactory;
@ -205,6 +208,7 @@ private:
: fRefCount(1) : fRefCount(1)
, fFontFileLoader(SkRefComPtr(fontFileLoader)) , fFontFileLoader(SkRefComPtr(fontFileLoader))
{ } { }
virtual ~StreamFontCollectionLoader() { }
ULONG fRefCount; ULONG fRefCount;
SkTScopedComPtr<IDWriteFontFileLoader> fFontFileLoader; SkTScopedComPtr<IDWriteFontFileLoader> fFontFileLoader;

View File

@ -290,6 +290,8 @@ public:
fIdentity.fDataId = SkFontIdentity::kInvalidDataId; fIdentity.fDataId = SkFontIdentity::kInvalidDataId;
} }
virtual ~FontFallbackRenderer() { }
// IDWriteTextRenderer methods // IDWriteTextRenderer methods
virtual HRESULT STDMETHODCALLTYPE DrawGlyphRun( virtual HRESULT STDMETHODCALLTYPE DrawGlyphRun(
void* clientDrawingContext, void* clientDrawingContext,

View File

@ -68,6 +68,7 @@ public:
private: private:
explicit SkDWriteFontFileStreamWrapper(SkStream* stream); explicit SkDWriteFontFileStreamWrapper(SkStream* stream);
virtual ~SkDWriteFontFileStreamWrapper() { }
ULONG fRefCount; ULONG fRefCount;
SkAutoTUnref<SkStream> fStream; SkAutoTUnref<SkStream> fStream;