TBR=
BUG=skia:
Review URL: https://codereview.chromium.org/
1432983002
import org.libsdl.app.SDLActivity;
+import android.content.Intent;
+
public class VisualBenchActivity extends SDLActivity {
- // TODO wire up command line arguments
+ protected String[] getArguments() {
+ // intent get intent extras if triggered from the command line
+ Intent intent = this.getIntent();
+ String flags = intent.getStringExtra("cmdLineFlags");
+
+ return flags.split("\\s+");
+ }
}
: INHERITED(hwnd) {
SkCommandLineFlags::Parse(argc, argv);
+ SkDebugf("Command line arguments:");
+ for (int i = 0; i < argc; ++i) {
+ SkDebugf("%s\n", argv[i]);
+ }
+
// these have to happen after commandline parsing
if (FLAGS_dif) {
const SkSurfaceProps& props(INHERITED::getSurfaceProps());