summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'gfx')
-rw-r--r--gfx/gtk_native_view_id_manager.cc3
-rw-r--r--gfx/gtk_native_view_id_manager.h1
-rw-r--r--gfx/platform_font_gtk.cc2
-rw-r--r--gfx/platform_font_gtk.h2
4 files changed, 7 insertions, 1 deletions
diff --git a/gfx/gtk_native_view_id_manager.cc b/gfx/gtk_native_view_id_manager.cc
index 91407283a..0cb96df 100644
--- a/gfx/gtk_native_view_id_manager.cc
+++ b/gfx/gtk_native_view_id_manager.cc
@@ -38,6 +38,9 @@ static void OnDestroy(GtkObject* obj, void* arg) {
GtkNativeViewManager::GtkNativeViewManager() {
}
+GtkNativeViewManager::~GtkNativeViewManager() {
+}
+
gfx::NativeViewId GtkNativeViewManager::GetIdForWidget(gfx::NativeView widget) {
// This is just for unit tests:
if (!widget)
diff --git a/gfx/gtk_native_view_id_manager.h b/gfx/gtk_native_view_id_manager.h
index b53d494..0a90e2f 100644
--- a/gfx/gtk_native_view_id_manager.h
+++ b/gfx/gtk_native_view_id_manager.h
@@ -69,6 +69,7 @@ class GtkNativeViewManager {
private:
// This object is a singleton:
GtkNativeViewManager();
+ ~GtkNativeViewManager();
friend struct DefaultSingletonTraits<GtkNativeViewManager>;
struct NativeViewInfo {
diff --git a/gfx/platform_font_gtk.cc b/gfx/platform_font_gtk.cc
index 6458a48..5ed7793 100644
--- a/gfx/platform_font_gtk.cc
+++ b/gfx/platform_font_gtk.cc
@@ -279,6 +279,8 @@ PlatformFontGtk::PlatformFontGtk(SkTypeface* typeface,
InitWithTypefaceNameSizeAndStyle(typeface, name, size, style);
}
+PlatformFontGtk::~PlatformFontGtk() {}
+
void PlatformFontGtk::InitWithNameAndSize(const std::wstring& font_name,
int font_size) {
DCHECK_GT(font_size, 0);
diff --git a/gfx/platform_font_gtk.h b/gfx/platform_font_gtk.h
index 3c507fb..bd26d8f 100644
--- a/gfx/platform_font_gtk.h
+++ b/gfx/platform_font_gtk.h
@@ -53,7 +53,7 @@ class PlatformFontGtk : public PlatformFont {
const std::wstring& name,
int size,
int style);
- virtual ~PlatformFontGtk() {}
+ virtual ~PlatformFontGtk();
// Initialize this object.
void InitWithNameAndSize(const std::wstring& font_name, int font_size);