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

Unified Diff: ui/gfx/render_text.h

Issue 8910004: Optimize setting the font when drawing in RenderTextLinux. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years 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 | « ui/gfx/platform_font_pango.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
===================================================================
--- ui/gfx/render_text.h (revision 114424)
+++ ui/gfx/render_text.h (working copy)
@@ -36,6 +36,8 @@
explicit SkiaTextRenderer(Canvas* canvas);
~SkiaTextRenderer();
+ void SetTypeface(SkTypeface* typeface);
+ void SetTextSize(int size);
void SetFont(const gfx::Font& font);
void SetForegroundColor(SkColor foreground);
void DrawSelection(const std::vector<Rect>& selection, SkColor color);
« no previous file with comments | « ui/gfx/platform_font_pango.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698