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

Unified Diff: tools/skhello.cpp

Issue 12521019: SkFlags now follows proper dashing convention. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 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
« tools/flags/SkCommandLineFlags.h ('K') | « tools/render_pictures_main.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skhello.cpp
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index 271041589fb1463fc54e245f003abb44dc8ca1a4..a4451ac91a6cad626695e7637f6e01714fcb29e8 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -11,8 +11,8 @@
#include "SkImageEncoder.h"
#include "SkString.h"
-DEFINE_string(o, "skhello.png", "The filename to write the image.");
-DEFINE_string(t, "Hello", "The string to write.");
+DEFINE_string2(outFile, o, "skhello.png", "The filename to write the image.");
+DEFINE_string2(text, t, "Hello", "The string to write.");
int tool_main(int argc, char** argv);
int tool_main(int argc, char** argv) {
@@ -23,11 +23,11 @@ int tool_main(int argc, char** argv) {
SkString path("skhello.png");
SkString text("Hello");
- if (!FLAGS_o.isEmpty()) {
- path.set(FLAGS_o[0]);
+ if (!FLAGS_outFile.isEmpty()) {
+ path.set(FLAGS_outFile[0]);
}
- if (!FLAGS_t.isEmpty()) {
- text.set(FLAGS_t[0]);
+ if (!FLAGS_text.isEmpty()) {
+ text.set(FLAGS_text[0]);
}
SkPaint paint;
« tools/flags/SkCommandLineFlags.h ('K') | « tools/render_pictures_main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698