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

Unified Diff: tools/sk_tool_utils.h

Issue 1163283002: update portable fonts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rewrite aaxfermodes.cpp to reduce test area Created 5 years, 6 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 | « tools/flags/SkCommandLineFlags.cpp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/sk_tool_utils.h
diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h
index d9345a6b922f008999ad12092ff990dc0f97dabc..484a81008c1656cf4a4fcf4f895b3e7c22f7e868 100644
--- a/tools/sk_tool_utils.h
+++ b/tools/sk_tool_utils.h
@@ -26,11 +26,15 @@ namespace sk_tool_utils {
const char* colortype_name(SkColorType);
/**
- * Sets the paint to use a platform-independent text renderer.
+ * Sets the paint to use a platform-independent text renderer if FLAGS_portableFonts is set.
+ * FIXME: will become obsolete as GMs migrate to set portable typeface always.
*/
void set_portable_typeface(SkPaint* paint, const char* name = NULL,
SkTypeface::Style style = SkTypeface::kNormal);
+ void set_portable_typeface_always(SkPaint* paint, const char* name = NULL,
+ SkTypeface::Style style = SkTypeface::kNormal);
SkTypeface* create_portable_typeface(const char* name, SkTypeface::Style style);
+ SkTypeface* create_portable_typeface_always(const char* name, SkTypeface::Style style);
void report_used_chars();
/**
« no previous file with comments | « tools/flags/SkCommandLineFlags.cpp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698