Move command line print above parse in VisualBench

TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/1467383003
This commit is contained in:
joshualitt 2015-11-23 13:57:46 -08:00 committed by Commit bot
parent c4b72720e7
commit 898e02e175

View File

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