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

View File

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

View File

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