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

Unified Diff: ui/gfx/platform_font_pango.h

Issue 789583002: Updates subpixel positioning and hinting when DSF is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 6 years 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 | « ui/gfx/font_render_params_linux.cc ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/platform_font_pango.h
diff --git a/ui/gfx/platform_font_pango.h b/ui/gfx/platform_font_pango.h
index e70dd6adbac12a80824094ac1563f3653757144f..1393063651575c334a75a1b110a5b049a29e6520 100644
--- a/ui/gfx/platform_font_pango.h
+++ b/ui/gfx/platform_font_pango.h
@@ -94,9 +94,14 @@ class GFX_EXPORT PlatformFontPango : public PlatformFont {
std::string font_family_;
int font_size_pixels_;
int style_;
+#if defined(OS_CHROMEOS)
+ // mutable to be updated in GetFontRenderParams().
+ mutable float device_scale_factor_;
Daniel Erat 2014/12/12 15:54:58 instead of making these mutable, would you mind ju
Jun Mukai 2014/12/12 19:40:12 Done.
+#endif
- // Information describing how the font should be rendered.
- FontRenderParams font_render_params_;
+ // Information describing how the font should be rendered. This parameter is
+ // mutable to update in GetFontRenderParams().
+ mutable FontRenderParams font_render_params_;
// Cached metrics, generated at construction.
int ascent_pixels_;
« no previous file with comments | « ui/gfx/font_render_params_linux.cc ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698