| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 package com.skia; | 8 package com.skia; |
| 9 | 9 |
| 10 import org.libsdl.app.SDLActivity; | 10 import org.libsdl.app.SDLActivity; |
| 11 | 11 |
| 12 import android.content.Intent; |
| 13 |
| 12 public class VisualBenchActivity extends SDLActivity { | 14 public class VisualBenchActivity extends SDLActivity { |
| 13 // TODO wire up command line arguments | 15 protected String[] getArguments() { |
| 16 // intent get intent extras if triggered from the command line |
| 17 Intent intent = this.getIntent(); |
| 18 String flags = intent.getStringExtra("cmdLineFlags"); |
| 19 |
| 20 return flags.split("\\s+"); |
| 21 } |
| 14 } | 22 } |
| OLD | NEW |