diff options
author | erikchen <erikchen@chromium.org> | 2016-01-07 14:03:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-07 22:04:49 +0000 |
commit | 773b3a012cd61c0ceb1f7fcfe4d70cad2a3f1dd2 (patch) | |
tree | ea2ce87dad6ba96ac7eec8d268b7cb22a8508e9d /ui/gfx/platform_font_win.h | |
parent | 4e17561af22e80438cd255dd5c92d64b57f4955d (diff) | |
download | chromium_src-773b3a012cd61c0ceb1f7fcfe4d70cad2a3f1dd2.zip chromium_src-773b3a012cd61c0ceb1f7fcfe4d70cad2a3f1dd2.tar.gz chromium_src-773b3a012cd61c0ceb1f7fcfe4d70cad2a3f1dd2.tar.bz2 |
gfx: Lazy compute metrics for fonts on Linux.
Previously, metrics were computed as soon as the PlatformFont object was
created.
BUG=570843
Review URL: https://codereview.chromium.org/1560353003
Cr-Commit-Position: refs/heads/master@{#368170}
Diffstat (limited to 'ui/gfx/platform_font_win.h')
-rw-r--r-- | ui/gfx/platform_font_win.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gfx/platform_font_win.h b/ui/gfx/platform_font_win.h index f696453..b03ed81 100644 --- a/ui/gfx/platform_font_win.h +++ b/ui/gfx/platform_font_win.h @@ -58,10 +58,10 @@ class GFX_EXPORT PlatformFontWin : public PlatformFont { // Overridden from PlatformFont: Font DeriveFont(int size_delta, int style) const override; - int GetHeight() const override; - int GetBaseline() const override; - int GetCapHeight() const override; - int GetExpectedTextWidth(int length) const override; + int GetHeight() override; + int GetBaseline() override; + int GetCapHeight() override; + int GetExpectedTextWidth(int length) override; int GetStyle() const override; const std::string& GetFontName() const override; std::string GetActualFontNameForTesting() const override; |