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

Unified Diff: ui/gfx/render_text.h

Issue 385463002: Support FontRenderParams on Win; fix RenderTextHarfBuzz. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revise SkiaTextRenderer::SetFontRenderParams; sync and cleanup. 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.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 3c87440eddd7f4da2852a61348607c0b348abc70..f29ac20530ac61604690690b09ef4b693f80851f 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -21,6 +21,7 @@
#include "third_party/skia/include/core/SkRect.h"
#include "ui/gfx/break_list.h"
#include "ui/gfx/font_list.h"
+#include "ui/gfx/font_render_params.h"
#include "ui/gfx/point.h"
#include "ui/gfx/range/range.h"
#include "ui/gfx/rect.h"
@@ -52,9 +53,8 @@ class SkiaTextRenderer {
~SkiaTextRenderer();
void SetDrawLooper(SkDrawLooper* draw_looper);
- void SetFontSmoothingSettings(bool antialiasing,
- bool subpixel_rendering,
- bool subpixel_positioning);
+ void SetFontRenderParams(const FontRenderParams& params,
+ bool background_is_transparent);
void SetFontHinting(SkPaint::Hinting hinting);
void SetTypeface(SkTypeface* typeface);
void SetTextSize(SkScalar size);
« no previous file with comments | « ui/gfx/pango_util.cc ('k') | ui/gfx/render_text.cc » ('j') | ui/gfx/render_text_harfbuzz.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698