summaryrefslogtreecommitdiffstats
path: root/ui/gfx/platform_font_win.h
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2016-01-07 14:03:50 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-07 22:04:49 +0000
commit773b3a012cd61c0ceb1f7fcfe4d70cad2a3f1dd2 (patch)
treeea2ce87dad6ba96ac7eec8d268b7cb22a8508e9d /ui/gfx/platform_font_win.h
parent4e17561af22e80438cd255dd5c92d64b57f4955d (diff)
downloadchromium_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.h8
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;