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

Unified Diff: ui/gfx/linux_font_delegate.h

Issue 929733002: Fix Pango font rendering with HiDPi displays on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don’t scale fonts up twice when running with device_scale_factor > 1.0. Created 5 years, 9 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
Index: ui/gfx/linux_font_delegate.h
diff --git a/ui/gfx/linux_font_delegate.h b/ui/gfx/linux_font_delegate.h
index 3a8d7bb86dcb74376d80b16e7ee0d77f31118960..95460b3fa452ae4b6cbba3042188297485e8b7d2 100644
--- a/ui/gfx/linux_font_delegate.h
+++ b/ui/gfx/linux_font_delegate.h
@@ -28,7 +28,7 @@ class GFX_EXPORT LinuxFontDelegate {
//
// Can return NULL, in case no toolkit has been set. (For example, if we're
// running with the "--ash" flag.)
- static const LinuxFontDelegate* instance();
+ static LinuxFontDelegate* instance();
// Returns the default font rendering settings.
virtual FontRenderParams GetDefaultFontRenderParams() const = 0;
@@ -39,7 +39,7 @@ class GFX_EXPORT LinuxFontDelegate {
std::string* family_out,
int* size_pixels_out,
int* style_out,
- FontRenderParams* params_out) const = 0;
+ FontRenderParams* params_out) = 0;
};
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698