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

Unified Diff: ui/gfx/render_text.h

Issue 480533002: RenderTextHarfBuzz: Set font render parameters in font data functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/render_text.cc » ('j') | ui/gfx/render_text.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 80055b0130624a7adf16addb207ed440cd247e2e..437d2e7ca59734fb2846eab976cd306d885af335 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -52,7 +52,7 @@ class SkiaTextRenderer {
~SkiaTextRenderer();
void SetDrawLooper(SkDrawLooper* draw_looper);
- void SetFontRenderParams(const FontRenderParams& params,
+ void SetFontRenderParams(FontRenderParams params,
bool background_is_transparent);
void SetTypeface(SkTypeface* typeface);
void SetTextSize(SkScalar size);
@@ -178,6 +178,9 @@ struct Line {
skia::RefPtr<SkTypeface> CreateSkiaTypeface(const std::string& family,
int style);
+// Applies the given FontRenderParams to a Skia |paint|.
+void ApplyRenderParams(const FontRenderParams& params, SkPaint* paint);
+
} // namespace internal
// RenderText represents an abstract model of styled text and its corresponding
« no previous file with comments | « no previous file | ui/gfx/render_text.cc » ('j') | ui/gfx/render_text.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698