Index: tools/VisualBench/VisualBench.cpp |
diff --git a/tools/VisualBench/VisualBench.cpp b/tools/VisualBench/VisualBench.cpp |
index c4b7c2401383db5c21ccc4ff49b1f429633295fe..b8f39f96fa5f0687a06568d36c9d660ddf7fdae9 100644 |
--- a/tools/VisualBench/VisualBench.cpp |
+++ b/tools/VisualBench/VisualBench.cpp |
@@ -25,10 +25,11 @@ DEFINE_bool2(fullscreen, f, true, "Run fullscreen."); |
DEFINE_bool2(interactive, n, false, "Run in interactive mode."); |
VisualBench::VisualBench(void* hwnd, int argc, char** argv) |
- : INHERITED(hwnd) |
- , fModule(new VisualLightweightBenchModule(this)) { |
+ : INHERITED(hwnd) { |
SkCommandLineFlags::Parse(argc, argv); |
+ // this has to happen after commandline parsing |
+ fModule.reset(new VisualLightweightBenchModule(this)); |
if (FLAGS_interactive) { |
fModule.reset(new VisualInteractiveModule(this)); |
} |