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

Unified Diff: ui/gfx/render_text_pango.cc

Issue 385463002: Support FontRenderParams on Win; fix RenderTextHarfBuzz. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix header guards. Created 6 years, 5 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/render_text_pango.cc
diff --git a/ui/gfx/render_text_pango.cc b/ui/gfx/render_text_pango.cc
index d19dc84c8d655a7231b4a394d49f282cf1866b9d..9db3995fcee95a34c2b9b6a6b132c7c9ad8b3df7 100644
--- a/ui/gfx/render_text_pango.cc
+++ b/ui/gfx/render_text_pango.cc
@@ -14,7 +14,7 @@
#include "third_party/skia/include/core/SkTypeface.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/font.h"
-#include "ui/gfx/font_render_params_linux.h"
+#include "ui/gfx/font_render_params.h"
#include "ui/gfx/pango_util.h"
#include "ui/gfx/utf16_indexing.h"
@@ -382,13 +382,7 @@ void RenderTextPango::DrawVisualText(Canvas* canvas) {
// TODO(derat): Use font-specific params: http://crbug.com/125235
const FontRenderParams& render_params = GetDefaultFontRenderParams();
- const bool use_subpixel_rendering =
- render_params.subpixel_rendering !=
- FontRenderParams::SUBPIXEL_RENDERING_NONE;
- renderer.SetFontSmoothingSettings(
- render_params.antialiasing,
- use_subpixel_rendering && !background_is_transparent(),
- render_params.subpixel_positioning);
+ renderer.SetFontRenderParams(render_params, background_is_transparent());
SkPaint::Hinting skia_hinting = SkPaint::kNormal_Hinting;
switch (render_params.hinting) {

Powered by Google App Engine
This is Rietveld 408576698