Index: ui/gfx/platform_font_linux.h |
diff --git a/ui/gfx/platform_font_linux.h b/ui/gfx/platform_font_linux.h |
index 95f5efb925038ce9d46ad24c7a08264f807980e0..a6f6e415c2bd1baff628860eb7b8394a47e2e844 100644 |
--- a/ui/gfx/platform_font_linux.h |
+++ b/ui/gfx/platform_font_linux.h |
@@ -11,12 +11,10 @@ |
#include "base/compiler_specific.h" |
#include "base/macros.h" |
#include "build/build_config.h" |
-#include "third_party/skia/include/core/SkRefCnt.h" |
+#include "third_party/skia/include/core/SkTypeface.h" |
#include "ui/gfx/font_render_params.h" |
#include "ui/gfx/platform_font.h" |
-class SkTypeface; |
- |
namespace gfx { |
class GFX_EXPORT PlatformFontLinux : public PlatformFont { |
@@ -53,6 +51,8 @@ class GFX_EXPORT PlatformFontLinux : public PlatformFont { |
int GetFontSize() const override; |
const FontRenderParams& GetFontRenderParams() override; |
+ sk_sp<SkTypeface> typeface() const { return typeface_; } |
+ |
private: |
// Create a new instance of this object with the specified properties. Called |
// from DeriveFont. |