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

Unified Diff: tools/whitelist_typefaces.cpp

Issue 1317913005: whitelist fallback typefaces (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove string change Created 5 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
« src/utils/SkWhitelistTypefaces.cpp ('K') | « tests/PictureTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/whitelist_typefaces.cpp
diff --git a/tools/whitelist_typefaces.cpp b/tools/whitelist_typefaces.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..205f54ac95548748203d45c6fcfa434b209e49f7
--- /dev/null
+++ b/tools/whitelist_typefaces.cpp
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkForceLinking.h"
+#include "SkGraphics.h"
+
+__SK_FORCE_IMAGE_DECODER_LINKING;
+
+extern bool CheckChecksums();
+extern bool GenerateChecksums();
+
+int tool_main(int argc, char** argv);
+int tool_main(int argc, char** argv) {
+ if (argc == 2) {
+ SkAutoGraphics ag; // Enable use of SkRTConfig
+ if (!strcmp(argv[1], "--check")) {
+ return (int) !CheckChecksums();
+ }
+ if (!strcmp(argv[1], "--generate")) {
+ if (!GenerateChecksums()) {
+ return 2;
+ }
+ return 0;
+ }
+ }
+ SkDebugf("Usage:\n %s [--check] [--generate]\n\n", argv[0]);
+ return 3;
+}
+
+#if !defined SK_BUILD_FOR_IOS
+int main(int argc, char * const argv[]) {
+ return tool_main(argc, (char**) argv);
+}
+#endif
« src/utils/SkWhitelistTypefaces.cpp ('K') | « tests/PictureTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698