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

Unified Diff: samplecode/SampleApp.cpp

Issue 407183003: add portable and canonical font support for DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add atexit; rename to create_... 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
« no previous file with comments | « gyp/tools.gyp ('k') | src/fonts/SkTestScalerContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.cpp
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 27365e0b879307aa50cc70d660ea2126caf4992b..e429c34863722a3d7449e84321a7d474639d3622 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -1661,9 +1661,7 @@ static void cleanup_for_filename(SkString* name) {
}
#endif
-namespace sk_tool_utils {
- extern bool gEnablePortableTypeface;
-};
+DECLARE_bool(portableFonts);
bool SampleWindow::onHandleChar(SkUnichar uni) {
{
@@ -1719,7 +1717,7 @@ bool SampleWindow::onHandleChar(SkUnichar uni) {
toggleFPS();
break;
case 'F':
- sk_tool_utils::gEnablePortableTypeface ^= true;
+ FLAGS_portableFonts ^= true;
this->inval(NULL);
break;
case 'g':
« no previous file with comments | « gyp/tools.gyp ('k') | src/fonts/SkTestScalerContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698