Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: ui/gfx/platform_font_linux.h

Issue 2863693002: Fallback Font Cache and Character Hinting for VRShell (Closed)
Patch Set: SkTypeface complete type Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/textures/ui_texture.cc ('k') | ui/gfx/platform_font_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/android/vr_shell/textures/ui_texture.cc ('k') | ui/gfx/platform_font_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698