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
diff --git a/src/ports/SkFontMgr_win_dw.cpp b/src/ports/SkFontMgr_win_dw.cpp
index eb0989a..ecca57f 100644
--- a/src/ports/SkFontMgr_win_dw.cpp
+++ b/src/ports/SkFontMgr_win_dw.cpp
@@ -46,6 +46,7 @@
private:
StreamFontFileLoader(SkStream* stream) : fRefCount(1), fStream(SkRef(stream)) { }
+ virtual ~StreamFontFileLoader() { }
ULONG fRefCount;
};
@@ -107,6 +108,8 @@
}
private:
StreamFontFileEnumerator(IDWriteFactory* factory, IDWriteFontFileLoader* fontFileLoader);
+ virtual ~StreamFontFileEnumerator() { }
+
ULONG fRefCount;
SkTScopedComPtr<IDWriteFactory> fFactory;
@@ -205,6 +208,7 @@
: fRefCount(1)
, fFontFileLoader(SkRefComPtr(fontFileLoader))
{ }
+ virtual ~StreamFontCollectionLoader() { }
ULONG fRefCount;
SkTScopedComPtr<IDWriteFontFileLoader> fFontFileLoader;
diff --git a/src/ports/SkRemotableFontMgr_win_dw.cpp b/src/ports/SkRemotableFontMgr_win_dw.cpp
index 936ab9b..d979683 100644
--- a/src/ports/SkRemotableFontMgr_win_dw.cpp
+++ b/src/ports/SkRemotableFontMgr_win_dw.cpp
@@ -290,6 +290,8 @@
fIdentity.fDataId = SkFontIdentity::kInvalidDataId;
}
+ virtual ~FontFallbackRenderer() { }
+
// IDWriteTextRenderer methods
virtual HRESULT STDMETHODCALLTYPE DrawGlyphRun(
void* clientDrawingContext,
diff --git a/src/utils/win/SkDWriteFontFileStream.h b/src/utils/win/SkDWriteFontFileStream.h
index 5a56290..ac98be61 100644
--- a/src/utils/win/SkDWriteFontFileStream.h
+++ b/src/utils/win/SkDWriteFontFileStream.h
@@ -68,6 +68,7 @@
private:
explicit SkDWriteFontFileStreamWrapper(SkStream* stream);
+ virtual ~SkDWriteFontFileStreamWrapper() { }
ULONG fRefCount;
SkAutoTUnref<SkStream> fStream;