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

Unified Diff: ui/gfx/platform_font_mac.h

Issue 681773002: mac: Avoid PlatformFontMac log spam. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whoops, add namespace to GetFontRenderParams() call Created 6 years, 2 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 | « no previous file | ui/gfx/platform_font_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/platform_font_mac.h
diff --git a/ui/gfx/platform_font_mac.h b/ui/gfx/platform_font_mac.h
index aa85f82cb97002f98e615f913e98938166863cac..d8f8e85c35dbbd371485a1f94783b1fec41ba822 100644
--- a/ui/gfx/platform_font_mac.h
+++ b/ui/gfx/platform_font_mac.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/mac/scoped_nsobject.h"
+#include "ui/gfx/font_render_params.h"
#include "ui/gfx/platform_font.h"
namespace gfx {
@@ -35,8 +36,8 @@ class PlatformFontMac : public PlatformFont {
PlatformFontMac(const std::string& font_name, int font_size, int font_style);
~PlatformFontMac() override;
- // Calculates and caches the font metrics.
- void CalculateMetrics();
+ // Calculates and caches the font metrics and inits |render_params_|.
+ void CalculateMetricsAndInitRenderParams();
// The NSFont instance for this object. If this object was constructed from an
// NSFont instance, this holds that NSFont instance. Otherwise this NSFont
@@ -56,6 +57,9 @@ class PlatformFontMac : public PlatformFont {
int cap_height_;
int average_width_;
+ // Details about how the font should be rendered.
+ FontRenderParams render_params_;
+
DISALLOW_COPY_AND_ASSIGN(PlatformFontMac);
};
« no previous file with comments | « no previous file | ui/gfx/platform_font_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698