Move command line print above parse in VisualBench
authorjoshualitt <joshualitt@chromium.org>
Mon, 23 Nov 2015 21:57:46 +0000 (13:57 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Nov 2015 21:57:46 +0000 (13:57 -0800)
TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/1467383003

tools/VisualBench/VisualBench.cpp

index 5ff556d..3f695d6 100644 (file)
@@ -28,13 +28,13 @@ DEFINE_bool2(dif, d, false, "Use device-independent fonts.");
 
 VisualBench::VisualBench(void* hwnd, int argc, char** argv)
     : INHERITED(hwnd) {
-    SkCommandLineFlags::Parse(argc, argv);
-
     SkDebugf("Command line arguments:");
     for (int i = 0; i < argc; ++i) {
         SkDebugf("%s\n", argv[i]);
     }
 
+    SkCommandLineFlags::Parse(argc, argv);
+
     // these have to happen after commandline parsing
     if (FLAGS_dif) {
         const SkSurfaceProps& props(INHERITED::getSurfaceProps());